Betradar - the betting arm of Sportradar

Page tree

Betradar - the betting arm of Sportradar

Skip to end of metadata
Go to start of metadata

In case an event happens in a match which defines the outcome of a specific oddstype, the Betradar system sends out a clearbet message. Clearbet messages contain information about the outcome of bets, and in some cases also whether the bet was voided or not. If the bet is (partly) voided, the voided part should be refunded to the customer.

All possible combinations of outcome and voidfactor:

  • outcome="0" and no voidfactor: Lose entire bet
  • outcome="1" and no voidfactor: Win entire bet
  • outcome="0" and voidfactor="1": Refund entire bet
  • outcome="1" and voidfactor="0.5": Refund half bet and win other half
  • outcome="0" and voidfactor="0.5": Refund half bet and lose other half


NOTE

Evaluation of the bet outcomes is the responsibility of the Client system.

XML example
<BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" status="clearbet" time="1" timestamp="1199435884237">
<Match active="1" betstatus="stopped" clearedscore="1:0" matchid="661373" matchtime="4" msgnr="21" status="1p">
<Odds active="1" combination="0" freetext="Next goal" id="13786" specialoddsvalue="0:0" subtype="13" type="ft3w" typeid="6">
<OddsField active="1" outcome="1" type="1"/>
<OddsField active="1" outcome="0" type="x"/>
<OddsField active="1" outcome="0" type="2"/>
</Odds>
</Match>
</BetradarLiveOdds>
XML example
<BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" status="clearbet" time="2" timestamp="1266483496355">
<Match active="1" betstatus="stopped" clearedscore="0:1" matchid="935448" msgnr="19" status="paused">
<Odds active="1" combination="0" freetext="Asian total first half " id="311538" specialoddsvalue="1.25" subtype="35" type="ftnw" typeid="
8">
<OddsField active="1" outcome="1" type="under" voidfactor="0.5"/>
<OddsField active="1" outcome="0" type="over" voidfactor="0.5"/>
</Odds>
</Match>
</BetradarLiveOdds>

XML attributes definition

ElementAttributes


AttributeDescriptionPossible values
BetradarLiveOddsstatus

What kind of information is contained in the message.

String
"clearbet" (in case of a clearbet message)

time

This is the time from when the Betradar operator clears the market, to the time (on the server) when the message gets sent to the client.

Integer
Matchclearedscore

The score in the match when the bet was cleared.

Integer
Oddsid

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

String
Format: "[homescore]:[awayscore]"

OddsFieldoutcomeWhether this outcome has occurred.

Integer

1 = true
0 = false

voidfactor

Optional attribute. Can be available for various bet types, like asian handicap and asian total. If the voidfactor is 0.5, the value of outcome will indicate whether the other half of the bet is won or lost.

1 = The whole bet is voided
0.5 = Half of the bet is voided