Skip to content

Markets and selections

The match (019a2b3c-2000-7000-8000-000000000001) has a Goals Over Under market (019a2b3c-3000-7000-8000-000000000001). Its marketTypeId links to the reference record, and its snapshotKey (61ae4ca0-0984-56f2-8942-ff6e152c0001) identifies the bundle of markets carried together for that event. Store snapshots by (eventId, snapshotKey) and use the individual market and selection IDs when placing a bet.

Decoded RabbitMQ MarketSnapshot body for the match at 2026-10-22T17:55:00Z. Its contentHash matches the 17:55 event manifest.

{
"schemaVersion": 1,
"messageId": "019a2b3c-6000-7000-8000-000000000005",
"producedAt": "2026-10-22T17:55:00.08Z",
"eventId": "019a2b3c-2000-7000-8000-000000000001",
"tournamentId": "019a2b3c-1000-7000-8000-000000000003",
"snapshotKey": "61ae4ca0-0984-56f2-8942-ff6e152c0001",
"group": null,
"markets": [
{
"marketId": "019a2b3c-3000-7000-8000-000000000001",
"marketTypeId": "019a2b3c-1000-7000-8000-000000000006",
"name": "Goals Over Under",
"columns": 2,
"selections": [
[
{
"selectionId": "019a2b3c-4000-7000-8000-000000000001",
"name": "Over 2.5",
"value": "1.90",
"isSuspended": false,
"columnIndex": 0,
"line": "2.5",
"participantId": null,
"sortOrder": 0
},
{
"selectionId": "019a2b3c-4000-7000-8000-000000000002",
"name": "Under 2.5",
"value": "1.96",
"isSuspended": false,
"columnIndex": 1,
"line": "2.5",
"participantId": null,
"sortOrder": 1
}
]
],
"splitNumber": null
}
],
"contentHash": "5f2d6fb95cc6ab72",
"fetchedAt": "2026-10-22T17:55:00Z",
"full": false
}

selections is an array of rows in JSON. In Protobuf, each rows entry is a SelectionRow holding selections. Use columns and the optional columnIndex (column_index) for layout. sortOrder (sort_order) describes structural order and does not change with the price.

value is the decimal price. line is the selection’s numeric parameter as defined by the market type, here 2.5 total goals for both selections. A selection with no numeric parameter can still carry a participant. A team participant ID resolves through the teams catalog. A player participant ID is opaque and has no catalog lookup.

group can identify a sub-game with its own id and name. It is null here because the market covers the match itself. The optional splitNumber (split_number) distinguishes split markets of one type, such as separate markets for the first and second goal scorer.

At 2026-10-22T17:58:00Z, Over 2.5 moves to "1.95" and Under 2.5 moves to "1.91". The market, selections and snapshot key keep their IDs. The snapshot gets a new fetchedAt and contentHash. This is a price change within the same source copy.

Edge streams one MarketChanged for the snapshot under FeedEvent.market. In the FeedEvent excerpt below, the optional group, split number and participant IDs are unset. The market and its selections are unsuspended.

Protobuf text format
market {
event_id: "019a2b3c-2000-7000-8000-000000000001"
tournament_id: "019a2b3c-1000-7000-8000-000000000003"
snapshot_key: "61ae4ca0-0984-56f2-8942-ff6e152c0001"
markets {
market_id: "019a2b3c-3000-7000-8000-000000000001"
market_type_id: "019a2b3c-1000-7000-8000-000000000006"
name: "Goals Over Under"
columns: 2
rows {
selections {
selection_id: "019a2b3c-4000-7000-8000-000000000001"
name: "Over 2.5"
value: "1.95"
column_index: 0
line: "2.5"
}
selections {
selection_id: "019a2b3c-4000-7000-8000-000000000002"
name: "Under 2.5"
value: "1.91"
column_index: 1
line: "2.5"
sort_order: 1
}
}
}
content_hash: "a9157e3d5f66c8b4"
fetched_at { seconds: 1792691880 }
}

GET /local/v1/events/019a2b3c-2000-7000-8000-000000000001/markets reads Edge’s held state. Each items[] element has a market snapshot and an outer suspended flag. A pre-bet refresh uses a separate wrapper and returns whole snapshots for the requested markets’ snapshot keys.

Edge REST market read response excerpt after the price change.

{
"items": [
{
"market": {
"schemaVersion": 1,
"messageId": "019a2b3c-6000-7000-8000-000000000006",
"producedAt": "2026-10-22T17:58:06Z",
"eventId": "019a2b3c-2000-7000-8000-000000000001",
"tournamentId": "019a2b3c-1000-7000-8000-000000000003",
"snapshotKey": "61ae4ca0-0984-56f2-8942-ff6e152c0001",
"contentHash": "a9157e3d5f66c8b4",
"fetchedAt": "2026-10-22T17:58:00Z",
"full": true,
"markets": [
{
"marketId": "019a2b3c-3000-7000-8000-000000000001",
"marketTypeId": "019a2b3c-1000-7000-8000-000000000006",
"selections": [
[
{ "selectionId": "019a2b3c-4000-7000-8000-000000000001", "value": "1.95", "line": "2.5" },
{ "selectionId": "019a2b3c-4000-7000-8000-000000000002", "value": "1.91", "line": "2.5" }
]
]
}
]
},
"suspended": false
}
]
}
Change Where you see it What your view does
Selection suspension isSuspended on the JSON selection or is_suspended on the gRPC selection Keep the selection and stop offering that outcome.
Market suspension suspended on the gRPC market. Edge REST’s outer suspended covers any suspended market in the snapshot or a withdrawn event. Keep the held data and stop offering the suspended market. Treat an Edge REST item flagged as suspended accordingly.
Market removal A newer canonical manifest omits the market, or Edge sends MarketRemoved on gRPC. Remove the market from the view. Edge REST omits removed markets from the items it serves.

The canonical Market body carries individual selection flags. A direct RabbitMQ client tracks market-level suspension as part of reconciliation. For example, an event withdrawal suspends its held markets whose versions are at or before the withdrawal time. On gRPC, apply MarketRemoved when it arrives and treat the streamed manifest as informational. STATUS_DEGRADED suspends trading across the feed regardless of individual flags.

The event’s manifest joins marketId to the opaque contentHash of the snapshot that carries the market. Compare by market ID. All markets in a snapshot share its hash. At 17:58, the poll publishes the price change with hash a9157e3d5f66c8b4. A consumer that still holds the 17:55 snapshot has hash 5f2d6fb95cc6ab72.

Decoded RabbitMQ EventSnapshot body excerpt for the 17:58 poll.

{
"eventId": "019a2b3c-2000-7000-8000-000000000001",
"fetchedAt": "2026-10-22T17:58:00Z",
"manifest": [
{ "marketId": "019a2b3c-3000-7000-8000-000000000001", "contentHash": "a9157e3d5f66c8b4" }
],
"changedMarketIds": ["019a2b3c-3000-7000-8000-000000000001"]
}
  1. Compare versions by fetchedAt. Event and market messages can arrive in either order. A refresh or resync with full: true and a different hash can repair a retained market at the same timestamp.
  2. For a market listed in changedMarketIds, expect a separate market snapshot. If a later manifest lists that market outside changedMarketIds, request a resync with reason: "HashMismatch" when the market is missing, withdrawn or has the wrong hash. Send the affected marketIds and the manifest’s fetchedAt as refFetchedAt. A newer held market version takes precedence over the manifest.
  3. If a newer manifest omits a held market, withdraw it unless the market itself is newer. Keep the manifest version as the removal version so an older or equal snapshot cannot bring the market back. Apply the same comparison when the manifest arrives first and an older snapshot reaches you later. An empty manifest removes all eligible held markets. A null manifest supplies no membership change.

The winner outright carries a different market ID (019a2b3c-3000-7000-8000-000000000002). Harbor Albion is one choice to win the league and Northbridge Rovers is another. Use participantId to join each selection to its team.

Decoded RabbitMQ MarketSnapshot body excerpt for the outright. Only one selection is shown.

{
"eventId": "019a2b3c-2000-7000-8000-000000000002",
"tournamentId": "019a2b3c-1000-7000-8000-000000000003",
"snapshotKey": "61ae4ca0-0984-56f2-8942-ff6e152c0002",
"contentHash": "ffd5854e044fe280",
"fetchedAt": "2026-10-22T17:55:00Z",
"markets": [
{
"marketId": "019a2b3c-3000-7000-8000-000000000002",
"marketTypeId": "019a2b3c-1000-7000-8000-000000000007",
"name": "Outright",
"selections": [
[
{
"selectionId": "019a2b3c-4000-7000-8000-000000000003",
"name": "Harbor Albion",
"value": "3.40",
"participantId": "019a2b3c-1000-7000-8000-000000000004",
"line": null
}
]
]
}
]
}