The communication between the Betradar system and the client system is done by exchanging messages in the XML format. This chapter provides you with information about the different XML messages sendt from the Betradar system.
The Betradar system sends out different types of XML messages. The content of those messages can differ, but the root element is always the same, <BetradarLiveOdds>:
XML example
<BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" replytype="current" status="betstart" time="0"
timestamp="1260866108600">
<!-- Information regarding matches, odds, etc goes here -->
</BetradarLiveOdds>
XML attributes definition
Element
Attributes
Attribute
Descruption
Possible value
BetradarLiveOdds
status
Keyword which describes what the content of the XML message will be like. In the upcoming chapters the keywords and content are described in more detail.
String, one of the following values:
loginok
loginfailed
betstop
betstart
alive
clearbet
rollback
change
score
cards
error
cancelbet
undecancelbet
meta
timestamp
Time from server in UTC which the client needs to sync to.
Timestamp in UTC
replytype
Optional attribute. String which identifies the type of message coming from the Betradar system. This attribute is included if the message is a reply to an error, current, unregister, register and score request from the client system.
String, one of the following values:
error
current
register
unregister
scoreandcardsummary
The information sent over the feed is split up per match. For each match a subelement <match> is added to the feed.