Skip to content

FeedHub data models

FeedHub uses the same event, market and selection IDs in Edge REST, Edge gRPC and canonical RabbitMQ snapshots. This example follows Harbor Albion versus Northbridge Rovers in the Harbor League. All IDs, names and prices are illustrative.

Model In the example
Reference data Resolve the football, England, Harbor League and team IDs, and find the market type for Goals Over Under.
Events The match starts in prematch, goes live and finishes. The Harbor League winner outright is a separate event in the same tournament.
Markets and selections Over 2.5 moves from "1.90" to "1.95" within the same market and source copy.
Bets Refresh the market and place a bet on Over 2.5 at "1.95" with client key example-over-2-5-001.
Settlements Look up the settled bet and apply its Win result once, even if the result comes again.
  • Edge REST gives you the reference catalog, an active event list, market reads and pre-bet refresh.
  • Edge gRPC streams feed changes and handles placement, bet status and settlement delivery. Resolve reference IDs through Edge REST.
  • RabbitMQ carries canonical event and market snapshots and indexes. These pages also show selected broker request and reply bodies to explain how Edge obtains data from FeedHub.
Field Meaning
eventId, marketId, selectionId The event, a betting proposition on it and an outcome in that proposition. A price can change while all three IDs stay the same.
snapshotKey The bundle of markets carried together within one event.
messageId One snapshot or index publication on RabbitMQ. Edge REST also synthesizes message IDs for local snapshots.
clientBetKey, betId Your key for one placement attempt within your client entry, and FeedHub’s ID for the bet.
delivery_id The token for one delivery on an Edge gRPC result stream.
fetchedAt, fetched_at The version of an event or market snapshot, on FeedHub’s clock.
gameStart, game_start The event’s scheduled start.
updatedAt The last update of a reference record.
producedAt When the message was produced.
settledAt, settled_at When FeedHub recorded the bet result.

JSON examples use camelCase, decimal strings and UTC timestamps. gRPC examples use Protobuf text format, with timestamps represented by seconds since the Unix epoch and optional fractional nanoseconds.