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
| Property | Type | Description |
|---|---|---|
marketId | string | ID of the market. |
marketName | string | Display name of the market; also used to group related lines (for example Total, Handicap). |
description | string | Alternate market label. |
specifiers | string | null | Distinguishes variant lines (for example total_2.5, total_3.5). |
isDisplayed | boolean | Whether the market appears in the main list; with specifiers, controls grouping in expandable lists. |
marketOptions | object[] | Outcomes for this market (see below). |
marketOptions fields
marketOptions fields| Property | Type | Description |
|---|---|---|
outcomeId | string | ID of the outcome. |
description | string | Short outcome label in the odds UI. |
betPlacementDescription | string | Outcome label shown in the betslip. |
odds | string | Current price (for example "1.94"). |
state | 'live' | 'suspended' | live is selectable; suspended is not. |
Platforms
Updated 25 days ago
