Get markets of a singular race

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robs21
    Junior Member
    • Aug 2023
    • 1

    #1

    Get markets of a singular race

    I've been playing around with api recently and I am currently trying to get win and place odds for a specified race. Its easy to do with the demo tools by using the starts after and before filter, however when I try using python i cannot find a solution as the time range for all the races is a 24hr period from the beginning of the day to 24hrs later. Is there another filter i could use similar to the one on the api demo tool or is there any other ways around this problem.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Assuming it's not the streaming API but the exchange one:
    - get the EventId for the race
    - use that to get the marketCatalogues for the win and place
    - get the related marketBooks.

    Comment

    Working...
    X