Skip to content

How do I know that market is closed? (API v4)

Ihor Komar edited this page Aug 10, 2022 · 2 revisions
  1. Load the dictionary "marketAndBetTypes" and save it in your application.
  2. Map your marketIDs to our marketsAndBetType.id's from this dictionary.
  3. Listen to the web socket feed and check "Outcome" object which provides all Selection related data. Check the property "outcome.active" and if the value is false this means that this selection is closed.
  4. "Outcome" object also has the property marketAndBetTypeId, based on which you may find relevant marketsAndBetType in the dictionary marketAndBetTypes you have loaded on step (1).
  5. When all such selections from the feed that belong to a certain market are closed, that will mean that this market is closed.
Clone this wiki locally