Player Odds
Player Odds for a match are sent inside player_odds_change tag, in the following format:
<players_odds_change event_id="match:34151685" product="3" status="1" timestamp="1659433219446">
<player player_id="1984029" team_id="7">
<market id="1" odd="44.0"/>
<market id="2" odd="19.0"/>
<market id="3" odd="44.0"/>
<market id="4" odd="200.0"/>
<market id="5" odd="900.0"/>
<market id="7" odd="27.0"/>
<market id="17" odd="95.0"/>
<market id="18" odd="37.0"/>
</player>
<player player_id="103045" team_id="7">
<market id="1" odd="4.0"/>
<market id="2" odd="1.95"/>
<market id="3" odd="4.0"/>
<market id="4" odd="5.0"/>
<market id="5" odd="27.0"/>
<market id="7" odd="2.4"/>
<market id="17" odd="10.5"/>
<market id="18" odd="3.75"/>
</player>
<player player_id="1015179" team_id="42">
<market id="1" odd="38.0"/>
<market id="2" odd="15.0"/>
<market id="3" odd="38.0"/>
<market id="4" odd="150.0"/>
<market id="5" odd="800.0"/>
<market id="7" odd="22.0"/>
<market id="17" odd="80.0"/>
<market id="18" odd="32.0"/>
</player>
<player player_id="352768" team_id="42">
<market id="1" odd="38.0"/>
<market id="2" odd="15.0"/>
<market id="3" odd="38.0"/>
<market id="4" odd="150.0"/>
<market id="5" odd="800.0"/>
<market id="7" odd="22.0"/>
<market id="17" odd="80.0"/>
<market id="18" odd="32.0"/>
</player>
<player player_id="366592" team_id="42">
<market id="1" odd="34.0"/>
<market id="2" odd="13.0"/>
<market id="3" odd="34.0"/>
<market id="4" odd="150.0"/>
<market id="5" odd="750.0"/>
<market id="7" odd="20.0"/>
<market id="17" odd="75.0"/>
<market id="18" odd="29.0"/>
</player>
<player player_id="1717779" team_id="7">
<market id="1" odd="12.5"/>
<market id="2" odd="5.0"/>
<market id="3" odd="12.5"/>
<market id="4" odd="32.0"/>
<market id="5" odd="200.0"/>
<market id="7" odd="7.0"/>
<market id="17" odd="32.0"/>
<market id="18" odd="10.5"/>
</player>
<player player_id="39183" team_id="7">
<market id="1" odd="44.0"/>
<market id="2" odd="19.0"/>
<market id="3" odd="44.0"/>
<market id="4" odd="200.0"/>
<market id="5" odd="900.0"/>
<market id="7" odd="27.0"/>
<market id="17" odd="95.0"/>
<market id="18" odd="37.0"/>
</player>
</players_odds_change>
Attributes of player_odds_change tags are event_id, product, status and timestamp.
Tag event_id represents the ID of event for which the odds are for.
Tag product representing type of feed that message belongs.
Product ID | Product Description | Product Status |
---|---|---|
3 | Pre-match | Available |
1 | Live odds | Not available |
Tag status represent if match is active or not. ‘1' if match is active and '0’ if match is disabled.
Then there is the player tag with attribute of:
player_id - indicating the id of the player
team_id - indicating the id of the team
That player tag containing a separate market child tag. Attributes of that tag are:
id - indicating the id of the outcome for that market
odd - This indicates the odd for the specific outcome of a market.
The list of markets can be retrieved from the following API Player Markets.
Several players/markets can be sent together or even just one market. So if an existing player/market is missing in the following xml files, that player/market should not be removed from the offer. When a player/market needs to be deactivated we will send the player with the market with odds 0.0, as follows:
<players_odds_change event_id="match:34151685" product="3" status="1" timestamp="1649166937309">
<player player_id="1984029" team_id="7">
<market id="1" odd="0.0"/>
<market id="2" odd="0.0"/>
<market id="3" odd="0.0"/>
<market id="4" odd="0.0"/>
<market id="5" odd="0.0"/>
<market id="7" odd="0.0"/>
<market id="17" odd="0.0"/>
<market id="18" odd="0.0"/>
</player>
</players_odds_change>