Best Practice
Displaying a match in your pre-match & live section
Example: Life cycle of an Ice Hockey match which goes to overtime: In order to determine how long a specific match should be displayed in your pre-match section: Listen to the product attribute (which will change at the handover from pre-match to live)
product=3 (pre-match)
product=1 (live odds)
In order to determine how long a specific match should be displayed in your live section: Listen to the match_status attribute. If one of the following "final statuses" appear in Ice Hockey, consider to remove the match from the live section:
<match_status id="100" description="Ended">
<match_status id="110" description="AET"> "After Extratime"
<match_status id="120" description="AP"> "After penalties"
<match_status id="90" description="Abandoned">
Please note: If a fixture_change message with change_type="5" is sent, we also recommend to remove the match from your live section as the match can be considered as removed from our Live Odds program.
Before the final bet_settlement messages will be sent for product 1 and 3, odds_change messages will be delivered in order to indicate again the status change and to provide the final score.
Final match_status="110"
<match_status id="110" description="AET">
<odds_change product="1" event_id="sr:match:23053813" timestamp="1597365374422">
<sport_event_status status="3" match_status="110" home_score="4" away_score="3" home_suspend="0" away_suspend="0">
<period_scores>
<period_score match_status_code="1" number="1" home_score="2" away_score="0"/>
<period_score match_status_code="2" number="2" home_score="1" away_score="3"/>
<period_score match_status_code="3" number="3" home_score="0" away_score="0"/>
<period_score match_status_code="40" number="4" home_score="1" away_score="0"/>
</period_scores>
<results>
<result match_status_code="100" home_score="3" away_score="3"/>
<result match_status_code="110" home_score="4" away_score="3"/>
</results>
</sport_event_status>
</odds_change>
Last updated
Was this helpful?