Player activity
What each of your players did on Parity, in order: the market pages they opened, the prices they were quoted, their trades, their cash outs and their settlements. For your own personalisation: recommendations, CRM and bonusing.
The two endpoints
players:read. Every one of your players, oldest first. Optional updated_since, cursor, type and limit.players:read. One player, by your own id for them: the value you send as X-Parity-User. The same parameters. An id you have never used is 404 unknown_user, and so is another operator's player with the same id.No key carries players:read by default
The feed names what each of your players viewed, priced and traded, so no existing key and no new default key can read it. Ask Parity for a key minted with players:read, and keep it on your server like every other key.
A page
{
"data": [
{
"id": "7d66a7c0-b64b-404a-a1af-2c597662c278",
"type": "viewed",
"externalUserId": "player-8421",
"occurredAt": "2026-10-22T14:01:52.410Z",
"recordedAt": "2026-10-22T14:01:52.410386Z",
"eventId": "evt_4c62de03aa3e",
"contractId": null,
"side": null,
"event": {
"eventId": "evt_4c62de03aa3e",
"eventTitle": "Patriots vs. Bears",
"fixtureId": "evt_4c62de03aa3e",
"category": "sports",
"startsAt": "2026-10-23T00:15:00.000Z"
},
"descriptor": null
},
{
"id": "5d125599-e75c-4847-8943-cff9e85f626d",
"type": "traded",
"externalUserId": "player-8421",
"occurredAt": "2026-10-22T14:03:11.204Z",
"recordedAt": "2026-10-22T14:03:11.209381Z",
"eventId": "evt_4c62de03aa3e",
"contractId": "ctr_753564b3291bcd92",
"side": "yes",
"event": null,
"descriptor": {
"eventId": "evt_4c62de03aa3e",
"eventTitle": "Patriots vs. Bears",
"marketType": "moneyline",
"selection": { "selectionId": "ctr_753564b3291bcd92:yes", "side": "yes", "label": "Patriots" }
},
"trade": {
"orderId": "85e7bc26-e83e-4f1c-ac65-4b6bc0a4f660",
"currency": "USD",
"contracts": 40.32,
"price": 0.62,
"amount": "25.00",
"orderStake": "25.00"
}
}
],
"pagination": { "limit": 100, "nextCursor": null, "hasMore": false },
"activity": {
"updatedSince": "2026-10-22T14:00:00.000000Z",
"serverTime": "2026-10-22T14:05:00.118274Z",
"earliest": "2026-07-24T14:05:00.118274Z",
"retentionDays": 90
}
}A player is named only by your own id, externalUserId: never a Parity id, an email or anything else Parity holds about them. A contract is its ctr_ id with the same descriptor the catalogue carries, plus the selection the player took, as on the order.filled and position.settled webhooks. See Structured descriptor.
The five types
| type | Recorded when | Carries |
|---|---|---|
viewed | A signed in player opened an event page on a Parity-hosted player site. Only where views are enabled for your account. | event |
quoted | A price was quoted for the player: a ticket opened, a stake typed, the automatic refresh an open ticket makes before its price expires, or your own POST /api/v1/quotes naming them. | quote |
traded | A buy filled. An order that fills in pieces has one item per piece. | trade |
cashed_out | A sale before resolution filled, one item per fill. | cashOut |
settled | A position settled when its market resolved. | settlement |
Swipe the table sideways for more columns.
| Field | Meaning |
|---|---|
id | Stable for the life of the item. Deduplicate on it. |
occurredAt | When it happened: the quote, the fill, the sale, the settlement or the view. |
recordedAt | When Parity recorded it, in UTC with microseconds. The feed is ordered by it. |
eventId, contractId, side | The event, the contract and the side. A view carries only the event. |
event | On a view: the event fields of the descriptor. Null on every other type. |
descriptor | On every other type: the contract as structured fields, with the selection taken. Null where it could not be read. |
quote | quoteId, action (buy or sell), stake, price, contracts, potentialPayout (null on a sell) and expiresAt. |
trade | orderId, contracts, price, amount (what this fill’s contracts cost, before fees) and orderStake (the whole order’s stake, the same on every fill of it: never sum it). |
cashOut | orderId, contracts, price, grossProceeds, fees, netProceeds and realisedPnl. |
settlement | result (won, lost or void), contracts, payout and realisedPnl. |
Swipe the table sideways for more columns.
Money is an exact decimal string in USD, with a currency beside it. Prices are numbers between 0 and 1, and contracts are numbers.
Paging and polling
- Start without
updated_sinceto read everything held, or send an instant (ISO 8601 with a time zone). Page withcursorfrompagination.nextCursoruntilhasMoreis false. - Send the pass's
activity.serverTimeas the nextupdated_since, exactly as you received it. No overlap is needed: an item is never served twice and never skipped, because a pass reads only below an instant at which every earlier item has already been written. - Each pass is bounded: its first page fixes
serverTimeand every page of the pass returns the same value, so paging always finishes. A page can be short, or empty, whilehasMoreis true: keep paging. typetakesviewed,quoted,traded,cashed_outandsettled, repeated or comma separated.limitis 1 to 500, default 100.- A cursor answers only for the player and
typefilter it was issued under. Change either and start again fromupdated_since.
let since = await store.read('activity-since'); // null on the first run
for (;;) {
let cursor: string | null = null;
let serverTime = since;
do {
const page = await parity.get('/api/v1/players/activity', {
updated_since: cursor ? undefined : since ?? undefined,
cursor: cursor ?? undefined,
limit: 500,
});
for (const item of page.data) await apply(item); // idempotent on item.id
cursor = page.pagination.nextCursor;
serverTime = page.activity.serverTime;
} while (cursor);
since = serverTime;
await store.write('activity-since', since);
await sleep(60_000);
}What is and is not recorded
- Quotes, trades, cash outs and settlements are recorded for every player of yours, from whichever surface they came: the embedded frame, a hosted site or your own API calls. They are the records Parity already keeps for the money; the feed only lists them.
- Views are recorded only when a player signed in on a Parity-hosted player site opens an event page, and only where views are enabled for your account. The embedded frame records no views, because Parity never knows who is reading it until the ticket asks for a price; the first price a ticket asks for is a
quoteditem. - Opening the same event page again in the same five minute window is one view.
quotedis every price quoted for the player, the automatic refreshes of an open ticket included, so a ticket left open produces several items. Read it as interest in a contract, not as one decision per item. A hosted account page valuing positions the player already holds records none.- Not recorded: anything about the player beyond what they did on a market. No IP address, device, location, email or name.
- Combos are optional, and this feed lists no combo: a player's combos are read from the combo endpoints and the opt-in
combo.*webhooks instead. See Combos (optional). - There is no webhook for activity. Poll this feed.
Privacy, retention and volume
- Items are held for 90 days.
activity.earliestis the earliest instant you can ask for: the later of 90 days ago and the start of the feed. Anupdated_sincebefore it is400 updated_since_too_old, withearliestin the body, rather than a short answer, and so is a cursor whose pass began more than 91 days ago. Keep what you need for longer on your own side. - Only your own players are ever returned. The operator a request reads is the one its key belongs to (or the child named by
x-parity-operator), and no parameter can name another. - The data is about your customers: use it for them, under your own privacy notice.
- The feed counts against the same per-key and per-operator limits as every other endpoint. Polling once a minute with
limit=500is plenty; a page reads at most 2,000 records, so a narrowtypefilter over a busy history pages rather than slowing down. See Rate limits.
Errors
| Status | error | Meaning |
|---|---|---|
400 | invalid_limit | limit is not an integer from 1 to 500. |
400 | invalid_type | An unknown type. The body lists the supported ones. |
400 | invalid_date | updated_since is not an ISO 8601 instant with a time zone. |
400 | invalid_cursor | A malformed cursor, or one issued for another player or type filter. |
400 | updated_since_too_old | Earlier than activity.earliest, or a cursor whose pass began more than 91 days ago. The body carries earliest. |
403 | insufficient_scope | The key does not carry players:read. |
404 | unknown_user | No player with that id among yours. |
503 | activity_feed_unavailable | The feed is not available yet. Retry shortly. |
Swipe the table sideways for more columns.