-
Notifications
You must be signed in to change notification settings - Fork 1
MarketAndBetType dictionary (API v4)
Ihor Komar edited this page Aug 10, 2022
·
2 revisions
This is the main dictionary that should be used to map data from BookmakerEvent and Outcome objects in websocket feed.
REST API endpoint: https://api-mst.oddsmarket.org/v4/market_and_bet_types
The response is an array of MarketsAndBetType objects. See the example below:
[
{
"id":"1",
"title":"ML-ML1",
"marketId":"5",
"betTypeId":"1",
"swapId":"2"
},
...
]
Name | Description | Type | Example |
---|---|---|---|
id | ID of an outcome type in our system | SMALLINT | 1 |
title | Name of an outcome type in our system | VARCHAR | ML-ML1 |
marketId | ID of a market in our system | SMALLINT | 5 |
betTypeId | ID of a bet type in our system | SMALLINT | 1 |
swapId | A reference to another MarketsAndBetType object that should be found by MarketsAndBetType.id property that should be used in case the teams are swapped in the event. Check swapTeams=true in the BookmakerEvent object in the WebSocket feed. Ignore this field if BookmakerEvent.swapTeams=false. Can also be NULL if "draw", for example. | SMALLINT | 2 |
*We recommend updating this dictionary every hour to keep it up to date.
This section describes API v4.
If you are using API v3 go to API v3 documentation root page.