-
Notifications
You must be signed in to change notification settings - Fork 1
How do I know that market is closed? (API v3)
Ihor Komar edited this page Jul 1, 2022
·
1 revision
- Load the dictionary "marketAndBetTypes" and save it in your application.
- Map your marketIDs to our marketsAndBetType.id's from this dictionary.
- Listen to the web socket feed and check "Odd" object which provides all Selection related data. Check the property "odd.active" and if the value is false this means that this selection is closed.
- "Odd" object also has the property marketAndBetTypeId, based on which you may find relevant marketsAndBetType in the dictionary marketAndBetTypes you have loaded on step (1).
- When all such selections from the feed that belong to a certain market are closed, that will mean that this market is closed.
This section describes API v3.
If you are using API v4 go to API v4 documentation root page.