Odds

Integrator-provided odds payloads.

In the case of the emBET SDK not serving the odds through our own backend it provides a functionality for the integrator to pass the odds data to the SDK. You are fully in charge of providing and updating odds, betting markets, outcomes, etc...​

embet.updateOdds(payload);

The payload passed to the updateOdds() function needs to adhere to the following structure.

[
    {
        "marketId": "1",
        "marketName": "1x2",
        "description": "1x2",
        "specifiers": null,
        "isDisplayed": true,
        "marketOptions": [
            {
                "outcomeId": "1",
                "description": "RBL",
                "betPlacementDescription": "RBL",
                "odds": "1.94",
                "state": "live"
            },
            {
                "outcomeId": "2",
                "description": "Draw",
                "betPlacementDescription": "Draw",
                "odds": "3.75",
                "state": "live"
            },
            {
                "outcomeId": "3",
                "description": "B04",
                "betPlacementDescription": "B04",
                "odds": "3.35",
                "state": "live"
            }
        ]
    },
    {
        "marketId": "2",
        "marketName": "Total",
        "description": "Total",
        "specifiers": "total_2.5",
        "isDisplayed": true,
        "marketOptions": [
            {
                "outcomeId": "4",
                "description": "O 2.5",
                "betPlacementDescription": "O 2.5",
                "odds": "1.17",
                "state": "live"
            },
            {
                "outcomeId": "5",
                "description": "U 2.5",
                "betPlacementDescription": "U 2.5",
                "odds": "4.1",
                "state": "live"
            }
        ]
    },
    {
        "marketId": "2",
        "marketName": "Total",
        "description": "Total",
        "specifiers": "total_3.5",
        "isDisplayed": false,
        "marketOptions": [
            {
                "outcomeId": "4",
                "description": "O 3.5",
                "betPlacementDescription": "O 3.5",
                "odds": "2.3",
                "state": "suspended"
            },
            {
                "outcomeId": "5",
                "description": "U 3.5",
                "betPlacementDescription": "U 3.5",
                "odds": "1.5",
                "state": "live"
            }
        ]
    }
]

Market fields

PropertyTypeDescription
marketIdstringID of the market.
marketNamestringDisplay name of the market; also used to group related lines (for example Total, Handicap).
descriptionstringAlternate market label.
specifiersstring | nullDistinguishes variant lines (for example total_2.5, total_3.5).
isDisplayedbooleanWhether the market appears in the main list; with specifiers, controls grouping in expandable lists.
marketOptionsobject[]Outcomes for this market (see below).

marketOptions fields

PropertyTypeDescription
outcomeIdstringID of the outcome.
descriptionstringShort outcome label in the odds UI.
betPlacementDescriptionstringOutcome label shown in the betslip.
oddsstringCurrent price (for example "1.94").
state'live' | 'suspended'live is selectable; suspended is not.

Platforms