Betting Entertainment Tools

Odds

A match.odds brings odds for selected match (upcoming and live only).

For the widget to render you need to provide matchId, other properties are optional.

Parameters
Name Type Attributes Default Description
props object <required>
matchId number <required>

Match ID.

useOnlyValidOdds boolean true

When set to true, shows valid odds only.

oddsTypeIds string

A comma-separated list of odds market ids. Set this property if you want to narrow default list. Check CONST.oddsTypeId for valid values. Example: for soccer livematch showing three_way, over_under, correct_score and handicap markets set "17, 18, 52, 85".

type string mixed

Determines height of the odds markets' buttons. Valid values are mixed, line, block.

disableWidgetHeader boolean false

When set to true, hides widget header.

disableMatchHeader boolean false

When set to true, hides match header.

onTrack function

Function/event handler, see Tracking options.

oddsDeeplinkLabels object

An object of deeplinking labels.

deeplinkParams object

An object of deeplinking params.

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="match.odds" data-sr-match-id="18428096"></div>
<script type="application/javascript" src="https://widgets.sir.sportradar.com/sportradar/widgetloader" async></script>

JS/Programmatic

<script>
    (function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
    g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
    )})(window,document,"script","https://widgets.sir.sportradar.com/sportradar/widgetloader","SIR", {
        language: 'en'
    });
    SIR('addWidget', '#sr-widget', 'match.odds', {matchId: 18428096});
</script>
<div id="sr-widget"></div>