Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 11 Next »

Match Odds

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

<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 represents ID of event for which the odds are for.

Tag product represents type of feed that message belongs.

Product ID

Product Description

Product Status

3

Pre-match

Available

1

Live odds

Not available

Tag status represents if match is active or not. ‘1' if match is active and '0’ if match is disabled.

Tag timestamp represents the time of the the file created

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

For each market there is separated market tag with attributes of:

  1. id - indicating the id of the market (name can be taken from the the api call /get_all_markets_per_sport)

  2. spread - the value which indicates the spread of the market. (Not all markets contain this attribute)

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

Inside odds tag there is the market tag containing a seperate outcome child tag. Attributes of that tag are:

  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. name - The name of the outcome (Optional)

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


Outright Odds

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

<odds_change event_id="outright:94253" event_start="2020-09-12T00:00:00+0000" event_date="2021-02-16T01:35:09+0000" event_end_date="2021-05-24T00:00:00+0000" product="3" status="1" timestamp="1613479235841">
	<odds>
		<market id="30">
			<outcome active="1" id="350158" odd="1.01"/>
			<outcome active="1" id="17" odd="1.02"/>
			<outcome active="1" id="35" odd="34.0"/>
			<outcome active="1" id="31" odd="61.0"/>
			<outcome active="1" id="44" odd="81.0"/>
			<outcome active="1" id="38" odd="101.0"/>
			<outcome active="1" id="33" odd="451.0"/>
			<outcome active="1" id="48" odd="501.0"/>
			<outcome active="1" id="37" odd="501.0"/>
			<outcome active="1" id="40" odd="501.0"/>
			<outcome active="1" id="42" odd="1001.0"/>
			<outcome active="1" id="45" odd="4001.0"/>
			<outcome active="1" id="43" odd="4001.0"/>
			<outcome active="1" id="39" odd="4001.0"/>
			<outcome active="1" id="8" odd="4001.0"/>
			<outcome active="1" id="6" odd="4001.0"/>
			<outcome active="1" id="34" odd="4001.0"/>
			<outcome active="1" id="7" odd="4001.0"/>
			<outcome active="1" id="15" odd="4001.0"/>
			<outcome active="1" id="3" odd="4001.0"/>
			<outcome active="0" id="30" odd="4001.0"/>
		</market>
	</odds>
</odds_change>

Attributes of odds_change tags are:

event_id - this represents the ID of the outright for which the odds are for.

event_start - this indicates when the outright started

event_date - this indicates when the outright should removed from the website due to events being placed

event_end_date - this indicates when the outright has ended and should be resulted

product - this represents the type of feed that the message belongs to.

Product ID

Product Description

Product Status

3

Pre-match

Available

1

Live odds

Not available

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

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

For each market there is separated market tag with attribut id - indicating the id of the market:

30 (Championship Winner)

40 (Single Event Winner)

50 (Podium Finish)

80 (Placebet 1-X)

Tag market tag containing a seperate outcome child tag. Attributes of that tag are:

  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:

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

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.