Versions Compared

Key

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

An 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 (Match or Outright)

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 5 for Motorsports)

timestamp

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

competitor id

The ID of the competitor

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

spreadThe spread of the market (Only available when the market contains a spread value

specifiers

A | separated list of key=value-pairs. These are further specifiers for the market such as Spread. (Not always available)

outcome id

The ID of the outcome

outcome status

The status of the outcome

odd

odds

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

Each event_id is sent in a seperate message therefore each odds_change message can only containt 1 event ID.

...

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

POST - Odds

XML Examples

...

Player Odds

Code Block
<?xml version='1.0' encoding='utf-8'?>
<odds<player_odds_change event_id="match:131728" product_id="5" event_id="match:131718"4" timestamp="1695889437000">
	<sport_event_status status="1"/>
	<competitor id="7">
		<player id="1984029" status="1">
			<odds>
                <market id="2000" status="1" specifiers="spread=45.5">
					<outcome id="6" status="1" expiry_dateodds="2023-01-05T11:00:00.000Z" timestamp="1672744545">
	<odds>
1.8"/>
					<outcome id="7" status="1" odds="1.9"/>		
				</market>
				<market id="32001" status="1" specifiers="spread="1837.5">
					<outcome id="6" status="1" oddodds="21.8"/>
					<outcome id="7" status="1" oddodds="1.78"/>		
				</market>
			</odds>
</odds_change>

Match Deactivation

Code Block
<?xml version='1.0' encoding='utf-8'?>
<odds_change product_id="5" event_id="match:131718		</player>
		<player id="1984030" status="1">
			<odds>
				<market id="2000" status="1" specifiers="spread=45.5">
					<outcome id="6" status="01" expiry_dateodds="2023-01-05T11:00:00.000Z" timestamp="1672744545"/>

Outright Odds

Code Block
<?xml version='1.0' encoding='utf-8'?>
<odds_change product_id="5" event_id="outright:131728" status="1" expiry_date="2023-01-05T11:00:00.000Z" timestamp="1672745540">
	<odds>
		<market id="1011.8"/>
					<outcome id="7" status="1" odds="1.9"/>		
				</market>
			</odds>
		</player>
	</competitor>
	<competitor id="25">
		<player id="1984032" status="1">
			<odds>
              <market id="2000" status="1" specifiers="spread=45.5">
					<outcome id="6" status="1" odds="1.8"/>
					<outcome id="400000007" status="1" oddodds="1.8"/9"/>		
				</market>
			</odds>
		</player>
		<player id="1984033" status="1">
			<outcome<odds>
				<market id="400000012000" status="1" oddspecifiers="3spread=45.5"/>
					<outcome id="400000046" status="01" odds="1.8"/>
					<outcome id="400000027" status="1" oddodds="401.9"/>		
				</market>
			</odds>
		</player>
	</competitor>
</player_odds_change>

...

Match Deactivation

Code Block
<?xml version='1.0' encoding='utf-8'?>
<odds<player_odds_change product_id="54" event_id="outrightmatch:131728" timestamp="1695889437000">
  <sport_event_status status="0"/>
</player_odds_change>

Player Deactivation

Code Block
<?xml version='1.0' encoding='utf-8'?>
<player_odds_change event_id=" expiry_date="2023-01-05T11:00:00.000Z" timestamp="1672745540"/>match:131728" product="4" timestamp="1659433219446">
    <sport_event_status status="1"/>
	<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:131728" product="4" timestamp="1695889437000">
    <sport_event_status status="1"/>
	<competitor id="7">
		<player id="1984030" status="1">
			<odds>
				<market id="2001" status="0" specifiers="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" specifiers="spread=37.5"/>
			</odds>
		</player>
	</competitor>
</player_odds_change>