Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A player_odds_change message is sent when the player odds updates for a fixture are published. This message includes the following attributes:

XML Attributes

NAME

DESCRIPTION

event_id

The ID of the event

expiry_date

The next expiration date of the event

status

The status of the event

product_id

The ID of the product (In this case ID 4 for Basketball Player Odds)

timestamp

The date & time of when the message was created (UTC)

competitor id

The ID of the competitor (team)

player id

The ID of the player

player status

The status of the player

market id

The ID of the market

market status

The status of the market

market spread

The spread of the market (Only available when the market contains a spread valueNot always available)

outcome id

The ID of the outcome

outcome status

The status of the outcome

odd

The latest odds for the outcome

Status IDs

ID

DESCRIPTION

0

This indicates that the status is Inactive

1

This indicates that the status is Active

...

To resend the latest odds in the queue you can use the following POST API.

POST - Odds (I)

XML Examples

Player Odds

Code Block
<?xml version='1.0' encoding='utf-8'?>
<player_odds_change event_id="match:131718131728" product="41" status="1" timestamp="16594332194461695889437000">
	<competitor id="7">
		<player id="1984029" status="1">
			<odds>
                <market id="2000" status="1" spread="45.5">
					<outcome id="6" status="1" odd="1.8"/>
					<outcome id="7" status="1" odd="1.9"/>		
				</market>
				<market id="2001" status="1" spread="37.5">
					<outcome id="6" status="1" odd="1.8"/>
					<outcome id="7" status="1" odd="1.8"/>		
				</market>
			</odds>
		</player>
		<player id="1984030" status="1">
			<odds>
				<market id="2000" status="1" spread="45.5">
					<outcome id="6" status="1" odd="1.8"/>
					<outcome id="7" status="1" odd="1.9"/>		
				</market>
			</odds>
		</player>
	</competitor>
	<competitor id="25">
		<player id="1984032" status="1">
			<odds>
              <market id="2000" status="1" spread="45.5">
					<outcome id="6" status="1" odd="1.8"/>
					<outcome id="7" status="1" odd="1.9"/>		
				</market>
			</odds>
		</player>
		<player id="1984033" status="1">
			<odds>
				<market id="2000" status="1" spread="45.5">
					<outcome id="6" status="1" odd="1.8"/>
					<outcome id="7" status="1" odd="1.9"/>		
				</market>
			</odds>
		</player>
	</competitor>
</player_odds_change>

Match Deactivation

Code Block
<?xml version='1.0' encoding='utf-8'?>
<player_odds_change product_id="51" event_id="match:131718131728" status="0" timestamp="16727445451695889437000"/>

Player Deactivation

Code Block
<?xml version='1.0' encoding='utf-8'?>
<player_odds_change event_id="match:131718131728" product="41" status="1" timestamp="1659433219446">
	<competitor id="7">
		<player id="1984031" status="0"/>
	</competitor>
	<competitor id="25">
		<player id="1984034" status="0"/>
	</competitor>
</player_odds_change>

Market Deactivation

Code Block
<?xml version='1.0' encoding='utf-8'?>
<player_odds_change event_id="match:131718131728" product="41" status="1" timestamp="16594332194461695889437000">
	<competitor id="7">
		<player id="1984030" status="1">
			<odds>
				<market id="2001" status="0" spread="37.5"/>
			</odds>
		</player>
		<player id="1984031" status="0"/>
	</competitor>
	<competitor id="25">
		<player id="1984033" status="1">
			<odds>
				<market id="2001" status="0" spread="37.5"/>
			</odds>
		</player>
	</competitor>
</player_odds_change>

...