Betradar - the betting arm of Sportradar

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
topOfPage
topOfPage
Excerpt Include
HideElements
HideElements
nopaneltrue

Excerpt Include
BetradarLogo
BetradarLogo
nopaneltrue

Panel

When, for some reason, a bet type is canceled but it should not have been canceled, this can be undone. The status attribute will be changed to show the following:

Code Block
languagexml
titleXML example
<BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" status="undocancelbet" timestamp="1199783156940">
<Match active="1" betstatus="stopped" matchid="661373" msgnr="49" status="not_started">
<Odds active="1" combination="0" freetext="Next goal" id="13792" specialoddsvalue="0:0" subtype="13" type="ft3w" typeid="6"/>
</Match>
</BetradarLiveOdds>
Code Block
languagexml
titleXML example
<BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" endtime="1414485300000" starttime="1414484460000"
status="undocancelbet" timestamp="1414485318193">
<Match active="1" betstatus="stopped" earlybetstatus="stopped" matchid="2097712" msgnr="24872" status="not_started">
<Odds active="1" combination="0" freetext="Correct score flex" id="1887907" specialoddsvalue="0:0" subtype="104" type="ftnw" typeid="8"/
>
</Match>
</BetradarLiveOdds>

XML elements and attributes

ElementAttributes

AttributeDescriptionPossible values
BetradarLiveOddsstatus

What kind of information is contained in the message.

String
"undocancelbet" (in case of an undocancelbet
message)

starttime

Optional attribute. If starttime and endtime are set, only the cancellation for this bet type with the same time interval should be undone.

Timestamp in UTC
endtime

Optional attribute. If starttime and endtime are set, only the cancellation for this bet type with the same time interval should be undone.

Timestamp in UTC
Oddsid

Unique identifier which corresponds to the odds elements in the previously sent out odds change messages and cancelbet messages.

Integer
Info

Note
Cancelbet messages either cover the whole bet type (from beginning to end) or a specific interval. When a cancelbet message has to be undone, it’s only possible to undo the cancellation of either the whole bet type, or (one of) the intervals specified.