Link market IDs with associated Event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • epicjono
    Junior Member
    • Feb 2020
    • 15

    #1

    Link market IDs with associated Event

    I am currently trying to consistently link soccer games via their market Ids ( generally of the form '1.170476164') to the date of the match, match ids etc.

    The response I receive, which consists of two lists - one being market Ids and the other the match Ids, do not always match in length. This can result in a match being listed on the exchange but its date being inaccessible through the listing of all events in that market. I was wondering if there is more concise way to retrieve marketIds in tangent with their relative details including match ids, dates, teams or if there is an explanation why the number of market Ids may not always align with those visible on the exchange.

    Any help would be greatly appreciated.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Use listEvents to get all football games you want. Store the ones you want to keep.

    For each football game, use listMarketCatalogue to get all the markets you want. Store the ones you want to keep.

    For each marketCatalogue, use listMarketBook to get data such as odds. Store the ones you want to keep. Refresh as suits.
    Last edited by jabe; 20-05-2020, 11:10 PM.

    Comment

    • epicjono
      Junior Member
      • Feb 2020
      • 15

      #3
      Thank you very much this is incredibly helpful. Additonally I was wondering what is the closest thing to a team ID that is available through the api? For instance in a soccer game there are two teams, are there corresponding ids for the home and away teams? thanks

      Comment

      Working...
      X