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

Version 1 Current »

Bet settlements for a match are sent in the bet_settlement tag and are sent in the following format:

<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>

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. result - indicating if the outcome is won or lost

  3. void_factor - indicating if the outcome is voided

  • result="0" and no void_factor: Lose entire bet

  • result="1" and no void_factor: Win entire bet

  • result="0" and void_factor="1.0": 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

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.