Odds Change
odds_change
messages are sent whenever Betradar provides updated odds for one or more markets in a match. These messages may include a subset of markets; any markets not included remain unchanged. For each reported market, all current outcomes and their respective odds are included.
Message Elements and Attributes
Message Example
XML Example
<odds_change event_id="sr:match:1234" timestamp="1234" product="2">
<sport_event_status status="1" reporting="1" match_status="1" home_score="2" away_score="0">
<clock match_time="10:00" remaining_time="50:00" stopped="true"/>
</sport_event_status>
<odds>
<market id="47" specifiers="score=41.5" favourite="1" status="1">
<outcome id="1" odds="1.12" active="1"/>
<outcome id="2" odds="1.92" active="1"/>
</market>
<market id="48" specifiers="score=41.5" status="1">
<outcome id="1" odds="1.12" active="1"/>
<outcome id="2" odds="1.92" active="1"/>
</market>
<market id="49" status="0"/>
<market id="123" specifiers="set=2|game=3|point=1" status="-1">
<outcome id="1" odds="1.3" active="1"/>
<outcome id="2" odds="1.7" active="1"/>
</market>
<market id="40" status="1">
<outcome id="sr:player:1234" odds="1.4" active="1"/>
<outcome id="sr:player:71111" odds="1.87" active="1"/>
<outcome id="sr:player:9919" odds="1.9" active="1"/>
<outcome id="sr:player:4322" active="0"/>
<outcome id="sr:player:1119" active="0"/>
</market>
</odds>
</odds_change>
Probabilities
You can configure the odds_change message to receive probabilities too. These probabilities are then sent on each individual market outcome.
The probability attribute will not be included on an outcome with a probability lower than 1e-10
.
XML Examples
<odds>
<market id="47" specifiers="score=41.5" favourite="1" status="1">
<outcome id="1" odds="1.12" probabilities="0.6836763” active="1"/>
<outcome id="2" odds="1.92" probabilities="0.8836763” active="1"/>
</market>
<market id="48" specifiers="score=42.5">
<outcome id="1" odds="1.12" probabilities="0.1836763” active="1"/>
<outcome id="2" odds="1.92" probabilities="0.3336763” active="1"/>
</market>
<market id="49" status="deactivated"/>
<market id="123" specifiers="set=2|game=3|point=1" status="-1">
<outcome id="1" odds="1.3" probabilities="0.77346763” active="1"/>
<outcome id="2" odds="1.7" probabilities="0.32946763” active="1"/>
</market>
</odds>
Sport event status element
The element sport_event_status
is provided in the odds_change message is a very important part of the odds_change messages. See the sport even status page for more information about this element.
Match Status and Market Status
Market 'status' in odds_change
message should NOT be considered to determine the status of match. Consider 'match_status' instead.
match_status="0" indicates the match is "not started".
when market_status="0" and match_status="1" , the match is in-play.
You should grey out the markets whose status=0 (customers should not be able to bet) untill you receive status="1" in the following odds change message.
When a market is temporarily suspended it will be received with a market status = -1. However there are instances during a live match where markets are temporarily not being offered, in those cases the markets will not be suspended but instead be deactivated via market status = 0. Those markets can later be re-activated again via market status = 1. Depending on the state of the live game this can lead to certain marketlines to remain deactivated while new marketlines are provided as active.”
The match_status=“100" indicates that the match is over (status: ended)
When the match is over, it should be removed from the offer
Handling odds_change message without markets/market lines
An odds_change message without markets means that some other information has changed (for example sport_event_status might have changed), but the markets have not.
In this case we advise that you update the information that has changed, and keep the market status, values and odds like they are. There is no indication of what has been changed, so it is best to process the whole message and update your data accordingly.
An odds_change without markets may look something like this:
XML Examples
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<odds_change product="3" event_id="sr:match:18427576" timestamp="1565462926275">
<sport_event_status status="0" match_status="0"/>
<odds_generation_properties expected_totals="2.52327" expected_supremacy="-0.443045"/>
<odds/>
</odds_change>
Last updated
Was this helpful?