Bet settlements for an outright are sent in the bet_settlement tag and are sent in the following format:
<bet_settlement event_id="outright:121874" product="3" timestamp="1646144904332"> <outcomes> <market id="30"> <outcome id="44" result="1"/> <outcome id="85" result="0"/> <outcome id="22" result="0"/> <outcome id="43" result="0"/> <outcome id="27" result="0"/> <outcome id="33" result="0"/> <outcome id="38" result="0"/> </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 attribute id which indicates the type of outright:
Inside the market tag we create the outcome tag. Attributes of that tag are:
id - indicating the id of the competitors/outrcomes
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
0 Comments