Versions Compared

Key

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

...

Odds for a match are sent inside odds_change tag, in the following format:

Code Block
<odds_change event_id="match:25173632" product="3" status="1" timestamp="1611588127387">
	<odds>
		<market id="259" status="1">
			<outcome active="1" id="1" name="1" odd="1.34"/>
			<outcome active="1" id="3" name="2" odd="3.25"/>
			<outcome active="0" id="2" name="X" odd="20.0"/>
		</market>
		<market id="9220" spread="38.5" status="1">
			<outcome active="1" id="6" name="Over" odd="1.54"/>
			<outcome active="1" id="7" name="Under" odd="2.2"/>
		</market>
		<market id="9220" spread="40.5" status="0"/>
		<market id="261" spread="-6.5" status="1">
			<outcome active="1" id="1" name="1" odd="2.14"/>
			<outcome active="1" id="3" name="2" odd="1.63"/>
		</market>
	</odds>
</odds_change>

Attributes of odds_change tags are event_id, product, status and timestamp.

Tag event_id represent ID of event for which the odds are for.

Tag product representing type of feed that message belongs.

...

Product ID

...

Product StatusProduct 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.

Inside main tag there is the odds tag containing odds data per market.

...

  1. active - this indicates if the outcome should be active or not. ‘1' if outcome is in active and '0’ if outcome is inactive.

  2. id - indicating the id of the outcome for that market

  3. odd - This indicates the odd for the specific outcome of a market.

...

Player Odds

Odds for a match are sent inside player_odds_change tag, in the following format:

Code Block
<player_odds_change event_id="match:23391055" product="3" status="0" timestamp="1614599465733">
  <player player_id="220223" team_id="2696">
    <outcome id="1" odd="4.75"/>
    <outcome id="2" odd="2.25"/>
    <outcome id="3" odd="4.75"/>
    <outcome id="4" odd="6.5"/>
    <outcome id="5" odd="20.0"/>
    <outcome id="7" odd="0.0"/>
    <outcome id="17" odd="0.0"/>
    <outcome id="18" odd="0.0"/>
  </player>
  <player player_id="284363" team_id="2696">
    <outcome id="1" odd="8.0"/>
    <outcome id="2" odd="3.25"/>
    <outcome id="3" odd="8.0"/>
    <outcome id="4" odd="14.0"/>
    <outcome id="5" odd="41.0"/>
    <outcome id="7" odd="0.0"/>
    <outcome id="17" odd="0.0"/>
    <outcome id="18" odd="0.0"/>
  </player>
</player_odds_change>

Attributes of player_odds_change tags are event_id, product, status and timestamp.

Tag event_id represent 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.

Inside main tag there is the player tag with attributes of:

  1. player_id - indicating the id of the player

  2. team_id - indicating the id of the team that player belongs to

That player tag containing a separate outcome child tag. Attributes of that tag are:

  1. id - indicating the id of the outcome for that market

  2. odd - This indicates the odd for the specific outcome of a market.