If a bettype for a match should be canceled for any reason, a cancelbet message is sent out.
<BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" status="cancelbet" timestamp="1199436169018">
<Match active="1" betstatus="stopped" matchid="661373" matchtime="9" msgnr="46" status="1p">
<Odds active="1" combination="0" freetext="Next goal" id="13792" specialoddsvalue="2:0" subtype="13" type="ft3w" typeid="6"/>
</Match>
</BetradarLiveOdds>
<BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" endtime="1199436022222" starttime="1199435902000"
status="cancelbet" timestamp="1199436037753">
<Match active="1" betstatus="started" matchid="661373" matchtime="7" msgnr="33" status="1p">
<Odds active="1" combination="0" freetext="Next goal" id="13790" specialoddsvalue="1:0" subtype="13" type="ft3w" typeid="6"/>
</Match>
</BetradarLiveOdds>
XML attributes definition
Element | Attributes |
|
|
---|
| Attribute | Description | Possible values |
BetradarLiveOdds | status | What kind of information is contained in the message. | String "cancelbet" (in case of a cancelbet message). |
starttime | Optional attribute. If starttime and endtime are set, only bets accepted in this interval should be canceled. | Timestamp in UTC |
endtime | Optional attribute. If starttime and endtime are set, only bets accepted in this interval should be canceled. | Timestamp in UTC |
Odds | id | Unique identifier which corresponds to the odds elements in the previously sent out odds change messages. All bets accepted for these odds should be canceled and cashed out with an odd of 1,0 (stakes returned). | Integer |