Sport Event
A Sport event is a match/race/competition. Every message contains information about exactly one Sport event. So for example, an odds change message typically includes odds changes to any markets for a particular match (Sports event).
Example Odds change message (XML example)
<odds_change product="1" event_id="sr:match:14011583" timestamp="1522772129383">
<sport_event_status status="0" match_status="0"/>
<odds>
.... Info about markets....
</odds>
</odds_change>All sport events have a unique ID. This unique ID is how the Sport Event is identified in the messages. The API then provides endpoints that allow you to look up fixture information for a given SportsEvent ID.
AMQP messages contain basic information about an event like event IDs, event status, market odds and probabilities, whereas additional information can be obtained from the API. The complete information about a sport event can only be tapped by using AMQP message data and API information.
UOF introduces a new format of sport event IDs which is called URN. This is nothing but event_id
URN has three components: a prefix, sport event type, and the actual sport event ID separated by a colon.
For example, sr:match:8412480 where sr is the prefix, match is the sport event type, and 8412480 is the sport event ID.
Event Status
The status specifies the current status of the sport event. This is made available in the AMQP messages for a given event in the attribute
Example XML
<sport_event_status status="0" match_status="0"/>match_status
This is Sports-specific integer code the represents the live match status i.e. what period or break the match is currently in (first period, 2nd break,etc.)
See the API endpoint descriptions/(lang)/match_status.xml for a mapping of these codes to translatable human-readable text in the languages Betradar supports.
Syntax
[ prefix ] : [ sport event type ] : [ sport event ID ]
In order to prevent any confusion, URN should always be treated as a whole, as IDs might overlap over various sport event types.