Messages are sent on various topics that are intended to provide easy and flexible routing/filtering. The topic key is divided into 8 sections:
The above image illustrates the syntax and ordering of the message queue.
Common topic key examples:
| A pre-match odds update: | hi.pre.-.odds_change.1.sr:match.1234.- |
|---|---|
| A live odds update: | hi.-.live.odds_change.1.sr:match.1234.- |
| A Fixture change | hi.pre.live.fixture_change.1.sr:match.1234.- |
| A live bet-_settlement: | lo.-.live.bet_settlement.1.sr:match.1234.- |
| Post-match bet-settlement | lo.pre.-.bet_settlement.1.sr:match.1234.- |
| A virtual sport odds update | hi.virt.-.odds_change.1.vs:match.1234.- |
| An alive message | -.-.-.alive.-.-.-.- |
| A snapshot complete message | -.-.-.snapshot_complete.-.-.- |
Golf Specific Routing Key Logic:
All Golf markets, both pre-match and live, are delivered through the Competition Odds producer (Producer ID: 14).
For Golf odds_change messages, the routing key's pre-match or live segment depends on the status attribute of the <sport_event_status> element in the message:
| Sport Event Status | Meaning | Routing key segment |
|---|---|---|
status="0" | Not Started | pre |
| Any other status | Event is in progress or beyond | live |
Examples
hi.pre.-.odds_change.9.sr:stage.1329673.-hi.-.live.odds_change.9.sr:stage.1329673.-Unless you are binding to all messages (“#”), you will typically bind to at least two routing key patterns (e.g. “*.*.live.#” and “-.-.-.#”) because you are typically always interested in receiving the system messages that will come with a routing key starting with -.-.-
Betradar strongly recommends to have all binding patterns always end with .# to ensure backward compatibility if additions are made to the routing key.