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",
"
marketOptions 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). |
| 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. |