Bet settlements for a match are sent in the bet_settlement tag and are sent in the following format:
<bet_settlement event_id="match:32165957" product="3" timestamp="1646144904332"> <outcomes> <market id="10"> <outcome id="1" result="0"/> <outcome id="2" result="0"/> <outcome id="3" result="1"/> </market> <market id="20"> <outcome id="1" result="0"/> <outcome id="3" result="1"/> </market> <market id="261" spread="0"> <outcome id="1" result="1" void_factor="1.0"/> <outcome id="3" result="0" void_factor="1.0"/> </market> <market id="261" spread="0.25"> <outcome id="1" result="1" void_factor="0.5"/> <outcome id="3" result="0" void_factor="0.5"/> </market> <market id="382"> <outcome id="1" result="0"/> <outcome id="3" result="1"/> </market> <market id="441"> <outcome id="2145" result="0"/> <outcome id="2146" result="0"/> </market> <market id="442"> <outcome id="1" result="0"/> <outcome id="2" result="1"/> <outcome id="3" result="0"/> </market> <market id="443" spread="0.5"> <outcome id="1" result="1"/> <outcome id="3" result="0"/> </market> <market id="444" spread="2.5"> <outcome id="6" result="0"/> <outcome id="7" result="1"/> </market> <market id="445" spread="0.5"> <outcome id="6" result="1"/> <outcome id="7" result="0"/> </market> <market id="446" spread="1.5"> <outcome id="6" result="0"/> <outcome id="7" result="1"/> </market> <market id="447" spread="1.5"> <outcome id="1" result="0"/> <outcome id="3" result="1"/> </market> </outcomes> </bet_settlement>
Attributes of bet_settlement tag are event_id, product and timestamp.
Tag event_id represents ID of event for which the results are for.
Tag product represents type of feed that message belongs.
Product ID | Product Description | Product Status |
---|---|---|
3 | Pre-match | Available |
1 | Live odds | Not available |
Inside main tag there is the outcomes tag containing bet result data per market.
For each market we create a market tag with attributes specifying the following:
id - indicating the id of the market
spread - the special bet value which indicates the spread of the market. (Not all markets contain the spread)
Inside the market tag we create the outcome tag. Attributes of that tag are:
id - indicating the id of the outcome for that market
result - indicating if the outcome is won or lost
void_factor - indicating if the outcome is voided
result="0" and no void_factor: Lose entire bet
result="1" and no void_factor: Win entire bet
result="0" and void_factor="1.0": Refund entire bet
result="1" and void_factor="0.5": Refund half bet and win other half
result="0" and void_factor="0.5": Refund half bet and lose other half
0 Comments