Bet Settlement
A bet_settlement message is sent when a new result in 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 |
timestamp | The date & time of when the message was created (UTC) |
market id | The ID of the market |
market specifiers | A | separated list of key=value-pairs. These are further specifiers for the market such as Spread. (Not always available) |
outcome id | The ID of the outcome |
result | The result of the outcome |
void_factor | The type of void of the outcome (Not always available) |
Â
Result IDs
ID | Void | DESCRIPTION |
---|---|---|
0 | Â | This indicates that the outcome is Lost |
1 | Â | This indicates that the outcome is Won |
0 | 1.0 | This indicates that the outcome should be Voided |
1 | 0.5 | This indicates that the outcome should be half Won and half Voided |
0 | 0.5 | This indicates that the outcome should be half Lost and half Voided |
Â
To resend the settlements in the queue you can use the following POST API:
Â
XML Examples
Match Settlements
<?xml version='1.0' encoding='utf-8'?>
<bet_settlement product_id="1" event_id="match:131718" timestamp="1695889437000">
<settlements>
<market id="3" specifiers="spread=18.5">
<outcome id="6" result="1"/>
<outcome id="7" result="0"/>
</market>
</settlements>
</bet_settlement>
Â
Outright Settlements
<?xml version='1.0' encoding='utf-8'?>
<bet_settlement product_id="1" event_id="outright:131728" timestamp="1695889437000">
<settlements>
<market id="101">
<outcome id="40000000" result="0"/>
<outcome id="40000001" result="1"/>
<outcome id="40000004" result="0" void_factor="1.0"/>
<outcome id="40000002" result="0"/>
</market>
</settlements>
</bet_settlement>
Â