Home team odds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onis
    Junior Member
    • Oct 2024
    • 5

    #1

    Home team odds

    I've written some basic Python code to check some football prices for me. The lay price of the Draw was easy to get as the runner ID doesn't seem to change (58805) from match to match.

    But the Home and Away team selection IDs seem to change, so my question would be, how would I pull that first (home) home team price?

    image.png
    Attached Files
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    It's essentially a race with three "runners". You can get the "runner" ids from the relevant listMarketCatalogue and use them to get the odds from the related listMarketBook.

    Comment

    • onis
      Junior Member
      • Oct 2024
      • 5

      #3
      Yes i get that, but the runners selection IDs change for every match! So calling the ID for the draw is easy, as its 58805. How do I specifically call the Home (first in the list) team?

      Comment

      • onis
        Junior Member
        • Oct 2024
        • 5

        #4
        fixed it, the home team is always priority 1, so I just sorted by that.

        Comment

        Working...
        X