Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 12 Current »

Bet settlments for a match are sent in bet_settlement tag and all the winning outcomes are in the following format:

<bet_settlement event_id="match:32165957" product="3" timestamp="1646144904332">
	<outcomes>
		<market id="10">
			<outcome id="3"/>
		</market>
		<market id="20">
			<outcome id="3"/>
		</market>
		<market id="382">
			<outcome id="3"/>
		</market>
		<market id="442">
			<outcome id="2"/>
		</market>
		<market id="443" spread="0.5">
			<outcome id="1"/>
		</market>
		<market id="444" spread="2.5">
			<outcome id="7"/>
		</market>
		<market id="445" spread="0.5">
			<outcome id="6"/>
		</market>
		<market id="446" spread="1.5">
			<outcome id="7"/>
		</market>
		<market id="447" spread="1.5">
			<outcome id="3"/>
		</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 attributes specifying the following:

  1. id - indicating the id of the market

  2. spread - the special bet value which indicates the spread of the market. (Not all markets contain the spread)

Inside the market tag we create the outcome tag. Attributes of that tag are:

  1. id - indicating the id of the outcome for that market

  2. name - this is the name of the outcome for the specified market

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.

<bet_settlement event_id="match:32165957" product="3" timestamp="1646144904332">
	<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

  • No labels