...
Odds for a match are sent inside odds_change tag, in the following format:
Code Block |
---|
...
language | xml |
---|
<odds_change event_id="match:25173632" product="3" 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 and timestamp. Tag event_id represent ID of event for which the odds are for. Tag product representing type of feed that message belongs.
...