How to check horse race results using Betfair

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    #1

    How to check horse race results using Betfair

    OK - so I have a bot, it places my bet and then prior to placing my next bet I wish to check the results of the previous bet before making my new bet.

    Currently I go out to a 3rd party website and scrape the INTERIM results so I can get on to my next bet straight away. If I wait for PAYOUT this this requires extra time and I could miss a bet.

    Just wondering whether Betfair has a service that I can call besides listMarketProfitAndLoss and this call would return the correct result I want but could take longer ??

    So does Betfair have a Interim result ?
  • gus
    Senior Member
    • Jan 2009
    • 134

    #2
    If all you want is the Result of e.g a Horse Race, i.e. which runner was a WINNER in WIN market or was placed (i.e. a WINNER in the PLACE market), then you can get that via the 'status' field of each runner returned in the 'runners' list by listMarketBook.

    The status can be either ACTIVE, WINNER, LOSER, REMOVED_VACANT, REMOVED or HIDDEN.

    if your app keeps track of the avgPriceMatched and sizeMatched of any bets you may have on those Runners then you can calculate your P/L, as soon as any runner returns a status of WINNER or LOSER, but it gets a bit tricky if there's a dead-heat (2 or more runners with a status of WINNER in the WIN market or 4 or more WINNERS in a 3 places PLACE market).

    if you don't want to do those calculations, then I don't think you have any alternative than to wait until listClearedOrders returns a result ... which can take quite a while (still!).

    Comment

    • Guest

      #3
      Thanks Gus

      Comment

      Working...
      X