Skip to content

Events

Key the match by eventId (event_id in gRPC). The reference IDs in its content give you the sport, country, tournament and teams. Its manifest connects the event to market snapshots.

GET /local/v1/events?sportId=019a2b3c-1000-7000-8000-000000000001&isLive=false returns a page of active events with each snapshot under items[].event. isLive=true selects live events and omitting the phase selects both. Finished and withdrawn events leave the active list. Follow nextCursor to continue the list.

REST response excerpt for Harbor Albion versus Northbridge Rovers fetched at 2026-10-22T17:55:00Z. Only the match item is shown.

{
"items": [
{
"event": {
"schemaVersion": 1,
"messageId": "019a2b3c-6000-7000-8000-000000000001",
"producedAt": "2026-10-22T17:55:05Z",
"eventId": "019a2b3c-2000-7000-8000-000000000001",
"fetchedAt": "2026-10-22T17:55:00Z",
"isLive": false,
"isFinished": false,
"content": {
"gameStart": "2026-10-22T18:00:00Z",
"sportId": "019a2b3c-1000-7000-8000-000000000001",
"countryId": "019a2b3c-1000-7000-8000-000000000002",
"tournamentId": "019a2b3c-1000-7000-8000-000000000003",
"teamAId": "019a2b3c-1000-7000-8000-000000000004",
"teamBId": "019a2b3c-1000-7000-8000-000000000005",
"kind": "Match",
"prematchEventId": null,
"scoreFull": null
},
"manifest": [
{ "marketId": "019a2b3c-3000-7000-8000-000000000001", "contentHash": "5f2d6fb95cc6ab72" }
],
"changedMarketIds": null
}
}
]
}

Use fetchedAt to compare versions of the match. gameStart is the scheduled kickoff and isLive is the observed phase. A missing score means no score was supplied. prematchEventId is only populated for legacy links between separately identified prematch and live records. The match in this example has one ID from prematch to live. JSON can carry optional values as null and gRPC leaves those fields unset. A present timer of 0 means zero seconds have elapsed in the current period.

Subscribe sends the current state for the selected sport, tournament and phase, then changes. The initial state includes matching finished events that Edge still holds. With both sport and tournament lists provided, either list can match and the phase must still match. To change the subscription’s filters, open a new call.

When the match goes live, a PHASE_ANY stream for its sport or tournament updates it under the same ID. A PHASE_LIVE stream sees an event newly enter its filter followed by its markets. A PHASE_PREMATCH stream that already sent the match gets EventUnsubscribed and drops it from that view. The same signal applies if a sport or tournament update takes an event outside the subscription’s filter.

FeedEvent excerpt on the PHASE_ANY stream at 2026-10-22T18:00:00Z. The manifest has the hash after the 17:58 price change.

Protobuf text format
event {
event_id: "019a2b3c-2000-7000-8000-000000000001"
fetched_at { seconds: 1792692000 }
is_live: true
content {
game_start { seconds: 1792692000 }
sport_id: "019a2b3c-1000-7000-8000-000000000001"
country_id: "019a2b3c-1000-7000-8000-000000000002"
tournament_id: "019a2b3c-1000-7000-8000-000000000003"
team_a_id: "019a2b3c-1000-7000-8000-000000000004"
team_b_id: "019a2b3c-1000-7000-8000-000000000005"
score_full: "0:0"
timer: 0
kind: EVENT_KIND_MATCH
}
manifest {
market_id: "019a2b3c-3000-7000-8000-000000000001"
content_hash: "a9157e3d5f66c8b4"
}
}

On RabbitMQ, the canonical EventSnapshot uses eventId, isLive and isFinished like the REST snapshot. The match moves from the prematch to the live routing scope and index. If a matching live source copy takes over the prematch copy, FeedHub also sends the transition once on the prematch route. A consumer that takes only prematch removes the match from that view as soon as it observes isLive: true.

A matched source-copy takeover keeps the canonical event ID and IDs of retained markets. The new copy supplies new selection IDs, and the snapshotKey can change. A copy that cannot be matched unambiguously can remain a separate event. Resolve the selection again before placement after a takeover. The example’s price change happens within one copy, so the selection ID stays the same.

A finish comes from isFinished: true. The last released live content in the example has a 3:0 score at 19:47:00Z. The finish arrives with a later version at 19:51:00Z.

Decoded RabbitMQ EventSnapshot body for the finish.

{
"schemaVersion": 1,
"messageId": "019a2b3c-6000-7000-8000-000000000002",
"producedAt": "2026-10-22T19:51:00.04Z",
"eventId": "019a2b3c-2000-7000-8000-000000000001",
"fetchedAt": "2026-10-22T19:51:00Z",
"isLive": true,
"isFinished": true,
"content": null,
"manifest": null,
"changedMarketIds": null
}

Edge can retain and send the last released content in a gRPC finish, even when the canonical finish has content: null. The finish flag and newer version carry the state change. A null canonical manifest carries no new market list. A repeated gRPC manifest has no presence distinction between a null and an empty canonical manifest.

FeedEvent excerpt for the same finish, with previously released content.

Protobuf text format
event {
event_id: "019a2b3c-2000-7000-8000-000000000001"
fetched_at { seconds: 1792698660 }
is_live: true
is_finished: true
content {
game_start { seconds: 1792692000 }
sport_id: "019a2b3c-1000-7000-8000-000000000001"
country_id: "019a2b3c-1000-7000-8000-000000000002"
tournament_id: "019a2b3c-1000-7000-8000-000000000003"
team_a_id: "019a2b3c-1000-7000-8000-000000000004"
team_b_id: "019a2b3c-1000-7000-8000-000000000005"
score_full: "3:0"
kind: EVENT_KIND_MATCH
}
}

A withdrawal is a separate path. Suppose a direct RabbitMQ client misses the finish, still holds the match at 19:47:00Z and receives the following live football EventIndex. The index lists membership for one sport and phase. Its events entries contain eventId and fetchedAt. An otherwise active event in that scope is withdrawn if absent from a valid index and its held fetchedAt is earlier than indexedAt. Keep the event’s last version and record indexedAt as its withdrawal time. An active snapshot must be newer than the withdrawal to restore the event. A finish can still apply if it is newer than the last event version. A direct client can use a ColdEvent resync request on withdrawal to recover a missed finish.

Decoded RabbitMQ EventIndex body with no live football events in this illustrative scope.

{
"schemaVersion": 1,
"messageId": "019a2b3c-6000-7000-8000-000000000003",
"producedAt": "2026-10-22T19:52:00.05Z",
"sportId": "019a2b3c-1000-7000-8000-000000000001",
"isLive": true,
"indexedAt": "2026-10-22T19:52:00Z",
"events": []
}

On gRPC, EventWithdrawn tells a matching subscriber that previously saw the event to remove it from the active view and suspend its markets. In this scenario, if Edge also missed the finish, a subscriber can receive the following FeedEvent excerpt.

Protobuf text format
event_withdrawn {
event_id: "019a2b3c-2000-7000-8000-000000000001"
withdrawn_at { seconds: 1792698720 }
}

EventUnsubscribed removes the event from one subscription’s view. On Edge REST both a withdrawal and a finish remove the event from the active list. The bet’s settlement result comes separately.

The Harbor League winner has its own event ID and keeps the match’s sport, country and tournament IDs. For an instance that publishes outrights, read kind: "Outright" in JSON or EVENT_KIND_OUTRIGHT in gRPC. The event has no pair of team IDs. Its named competitors appear as selections in its own market. Read the kind directly because a missing optional ID does not identify an event’s kind.

Decoded RabbitMQ EventSnapshot body excerpt for the outright.

{
"schemaVersion": 1,
"messageId": "019a2b3c-6000-7000-8000-000000000004",
"producedAt": "2026-10-22T17:55:00.05Z",
"eventId": "019a2b3c-2000-7000-8000-000000000002",
"fetchedAt": "2026-10-22T17:55:00Z",
"isLive": false,
"isFinished": false,
"content": {
"gameStart": "2027-05-22T15:00:00Z",
"sportId": "019a2b3c-1000-7000-8000-000000000001",
"countryId": "019a2b3c-1000-7000-8000-000000000002",
"tournamentId": "019a2b3c-1000-7000-8000-000000000003",
"teamAId": null,
"teamBId": null,
"kind": "Outright",
"name": "Harbor League 2026/27 Winner",
"prematchEventId": null
},
"manifest": [
{ "marketId": "019a2b3c-3000-7000-8000-000000000002", "contentHash": "ffd5854e044fe280" }
]
}