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 2 Next »

Match bet settlments

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

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bet_settlement certainty="1" event_id="match:24593892" product="3" timestamp="1606302182458">
	<outcomes>
		<market id="382">
			<outcome id="1" name="1"/>
		</market>
		<market id="7064" sbv="5.5">
			<outcome id="1228" name="12 + Under"/>
			<outcome id="1230" name="1X + Under/>
			<outcome id="1232" name="X2 + Under"/>
		</market>
		<market id="7012" sbv="6.5">
			<outcome  id="7" name="Under"/>
		</market>
		<market id="7012" sbv="7.5">
			<outcome id="7" name="Under"/>
		</market>
		<market id="7012" sbv="8.5">
			<outcome id="7" name="Under"/>
		</market>
	</outcomes>
</bet_settlement>

For each market we create market tag with attributes specifying the following:

  1. id - indicating the id of the market

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

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,

  3. result - this indicates the winning outcome which is equal to 1. Currently we are in the process of offering the option to send also the losing outcomes of a market with the result equal to 0.

  • No labels