Outright Odds
Odds for a outright are sent inside odds_change tag, in the following format:
<odds_change event_id="outright:94253" event_start_date="2020-09-12T00:00:00+0000" event_stop_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_date - this indicates when the outright started
event_stop_date - this indicates when the outright should be removed from the offer as events related to that outright are about to start.
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 the main tag there is the odds tag containing odds data per market.
For each market there is a separated market tag with the attribute id - indicating the id of the market:
30 (Championship Winner)
40 (Single Event Winner)
50 (Podium Finish)
80 (Placebet 1-X)
The market tag contains a seperate outcome child tag. Attributes of that tag are:
active - this indicates if the outcome should be active or not. ‘1' if outcome is in active and '0’ if outcome is inactive.
id - indicating the id of the outcome for that market
odd - This indicates the odd for the specific outcome of a market.