Betting Entertainment Tools

Data

The widget gets its data from the client's API. The required data structure is listed below. This data is also passed through onItemClick callback function.

Type Definitions

Object

# event

Event data is used to display information inside the card / event component.

Properties:
Name Type Attributes Description
id string | number <required>

Sportradar ID of the event.

externalId string | number

Client ID of the event.

date string

This is used to display date inside the component.

sport Object

Sport

id string | number

The ID of the sport.

name string

The name of the sport.

category Object

Category

id string | number

The ID of the category.

name string

The name of the category.

tournament Object

Tournament

id string | number

The ID of the tournament.

name string

The name of the tournament.

teams Array.<Object, Object>

Array for home and away competitors.

id string | number

The ID of the competitor.

name string

The name of the competitor.

isLive boolean

Live status of event.

liveCurrentTime string

Live time of the event.

result1 result1 Widgets.BetInsights.Integration.Results.result1

Data appears in the result column. For more information check Result1.

Example
{
    "id": "36613889",
    "date": "12/10/22, 05:20",
    "sport": {
        "id": "5",
        "name": "Tennis"
    },
    "category": {
        "id": "213",
        "name": "ITF Women"
    },
    "tournament": {
        "id": "121685",
        "name": "Hua Hin, Singles Main, W-ITF-THA-14A"
    },
    "teams": [
        {
            "id": "13917823",
            "name": "Costoulas, Sofia"
        },
        {
            "id": "1228969",
            "name": "Sema, Erika"
        }
    ],
    "isLive": true,
    "liveCurrentTime": "2nd set",
    "result1": {
        "result": [
            0,
            1
        ]
    }
}
Object

# market

Properties:
Name Type Attributes Description
id string | number <required>

The ID of the market.

name string

The name of the market.

status Object
isActive boolean

The status of the market.
If set to false: see widget behavior

Example
{
    "id": "13",
    "name": "Win tennis match",
    "status": {
        "isActive": true
    }
}
Object

# outcome

Outcome data is used to display outcomes buttons.

Properties:
Name Type Attributes Description
name string <required>

The name of the outcome.

id string | number <required>

The ID of the outcome.

odds string | number <required>

Value displayed inside outcome button.
Client can request changing odds format via adapter, which can be then set from global SIR API with oddsType option.

specifier Object
value string | number

Specifies an additional value associated with the outcome.

status Object
isActive boolean

The status of the outcome.
If set to false: see widget behavior

Example
{
    "name": "1",
    "id": "19628406267",
    "odds": "1.78",
    "specifier": {
        value: "-2.50"
    }
    "status": {
        "isActive": true
    }
}