Match bet settlements
Bet results for a match are sent in bet_settlement tag and are in the following format:
<bet_settlement event_id="match:24593892" product="3" timestamp="1606302182458"> <outcomes> <market id="382"> <outcome id="1" name="1"/> </market> <market id="7064" spread="5.5"> <outcome id="1228" name="12 + Under"/> <outcome id="1230" name="1X + Under/> <outcome id="1232" name="X2 + Under"/> </market> <market id="7012" spread="6.5"> <outcome id="7" name="Under"/> </market> <market id="7012" spread="7.5"> <outcome id="7" name="Under"/> </market> <market id="7012" spread="8.5"> <outcome id="7" name="Under"/> </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 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 sbv)
Inside the market tag we create the outcome tag. Attributes of that tag are:
id - indicating the id of the outcome for that market
name - this is the name of the outcome for the specified market,
result - this indicates the winning outcome which is equal to 1. Currently we are in the process of offering the option to send also the losing outcomes of a market with the result equal to 0.
Add Comment