Checking the status of a bet i.e. Won/Lost/Still Active, etc?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pete101
    Junior Member
    • Sep 2019
    • 22

    #1

    Checking the status of a bet i.e. Won/Lost/Still Active, etc?

    Hi Guys,

    Any of you gurus out there know if it is possible to determine whether a bet placed via the API is a winner/loser?

    Currently I download the "settled bets" spreadsheet from Betfair, but I would have thought that since I am able to place a bet via the API, then I can probably also get the status of it via the API. Can't find the required documentation though.

    Anyone know if it's possible?

    Many thanks,

    Pete
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    Hi

    There are probably few ways to get it but one way is the listMarketBook() API call
    https://docs.developer.betfair.com/display/1smk3cen4v3lu3yomq5qye0ni/listMarketBook

    That returns
    List<MarketBook>​ which contains a list of Runners, which contains a RunnerStatus that gives what you are after
    https://docs.developer.betfair.com/d...nitions-Runner

    Comment

    • Pete101
      Junior Member
      • Sep 2019
      • 22

      #3
      @geoffw123

      Perfect - Thank you :-)

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        We recently had a post where there was a dead heat in a horse race, so even though the data suggests there'll only be one winner, you'll need to check the status for all runners to be certain, if your interest is in a sport that can produce such an outcome.
        Last edited by jabe; 03-11-2022, 01:49 PM.

        Comment

        • Pete101
          Junior Member
          • Sep 2019
          • 22

          #5
          Good point. Thank you.

          Comment

          Working...
          X