Match bet settlements
Bet results settlments for a match are sent in bet_settlement tag and all the winning outcomes are in the following format:
Code Block |
---|
<bet_settlement event_id="match:2459389232165957" product="3" timestamp="16063021824580"> <outcomes> <market id="38210"> <outcome id="1" name="13"/> </market> <market id="20"> <outcome id="3"/> </market> <market id="7064" spread="5.5"382"> <outcome id="3"/> </market> <outcome<market id="1228" name="12 + Under442"> <outcome id="2"/> </market> <outcome<market id="1230443" namespread="1X + Under0.5"> <outcome id="1"/> </market> <outcome<market id="1232444" namespread="X2 + Under2.5"> <outcome id="7"/> </market> <market id="7012445" spread="60.5"> <outcome id="7" name="Under6"/> </market> <market id="7012446" spread="71.5"> <outcome id="7" name="Under"/> </market> <market id="7012447" spread="81.5"> <outcome id="7" name="Under"3"/> </market> </outcomes> </bet_settlement> |
...
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.
We also have the option to send
...
(upon request) all lost outcomes for each market. In this case we will send as below with the attribute ‘result’.
result="0" and no void_factor: Lose entire bet
result="1" and no void_factor: Win entire bet
result="0" and void_factor="1": 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.
Code Block |
---|
<bet_settlement event_id="match:32165957" product="3" timestamp="0">
<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> |
result="0" and no void_factor: Lose entire bet
result="1" and no void_factor: Win entire bet
result="0" and void_factor="1": 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.