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 |
status | The status of the event |
product_id | The ID of the product |
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 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 |
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:
XML Examples
Player Odds
<?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="1984029" status="1"> <odds> <market id="2000" status="1" specifiers="spread=45.5"> <outcome id="6" status="1" odds="1.8"/> <outcome id="7" status="1" odds="1.9"/> </market> <market id="2001" status="1" specifiers="spread=37.5"> <outcome id="6" status="1" odds="1.8"/> <outcome id="7" status="1" odds="1.8"/> </market> </odds> </player> <player id="1984030" status="1"> <odds> <market id="2000" status="1" specifiers="spread=45.5"> <outcome id="6" status="1" odds="1.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="7" status="1" odds="1.9"/> </market> </odds> </player> <player id="1984033" status="1"> <odds> <market id="2000" status="1" specifiers="spread=45.5"> <outcome id="6" status="1" odds="1.8"/> <outcome id="7" status="1" odds="1.9"/> </market> </odds> </player> </competitor> </player_odds_change>
Match Deactivation
<?xml version='1.0' encoding='utf-8'?> <player_odds_change product_id="4" event_id="match:131728" timestamp="1695889437000"> <sport_event_status status="0"/> </player_odds_change>
Player Deactivation
<?xml version='1.0' encoding='utf-8'?> <player_odds_change event_id="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
<?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>