A player_bet_settlement message is sent when the player settlements for a fixture is published. This message includes the following attributes:
XML Attributes
NAME | DESCRIPTION |
---|---|
event_id | The ID of the event (Match or Outright) |
product_id | The ID of the product (In this case ID 5 for Motorsports) |
timestamp | The time of when the message was created |
market id | The ID of the market |
market spread | The spread of the market (Only available when the market contains a spread value) |
outcome id | The ID of the outcome |
result | The result of the outcome |
void | The type of void of the outcome (Only available when the outcome should be voided) |
Result IDs
ID | Void | DESCRIPTION |
---|---|---|
0 | This indicates that the outcome is Lost | |
1 | This idicates that the outcome is Won | |
0 | 1 | This indicates that the outcome should be Voided |
To resend the results in the queue you can use the following POST API.
XML Examples
Match Results
<?xml version='1.0' encoding='utf-8'?> <bet_settlement product_id="5" event_id="match:131718" timestamp="1672744545"> <results> <market id="3" spread="18.5"> <outcome id="6" result="1"/> <outcome id="7" result="0"/> </market> </results> </bet_settlement>
Outright Results
<?xml version='1.0' encoding='utf-8'?> <bet_settlement product_id="5" event_id="outright:131728" timestamp="1672745540"> <results> <market id="101"> <outcome id="40000000" result="0"/> <outcome id="40000001" result="1"/> <outcome id="40000004" result="0" void="1"/> <outcome id="40000002" result="0"/> </market> </results> </odds_change>