Correct way to determine that a market has been settled?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NickB
    Junior Member
    • Mar 2013
    • 17

    #1

    Correct way to determine that a market has been settled?

    What is the correct way to determine from the results of listMarketBook that a market has been settled?

    The documentation suggests I should use MarketBook.status: "The status of the market, for example ACTIVE, SUSPENDED, SETTLED, etc."

    But SETTLED is not a documented value for the MarketStatus enum.

    Should I check against "CLOSED" or "SETTLED"? Does CLOSED mean the race has finished but has yet to be settled? Or should I use the MarketBook.complete field (this field has no explanatory text).

    Thanks
    NickB
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 679

    #2
    Hi NickB,

    This is a typo in the documentation description. A MarketStatus of "CLOSED" indicates that a market has been settled.

    Thanks

    Neil

    Comment

    • NickB
      Junior Member
      • Mar 2013
      • 17

      #3
      Great, thanks.

      Comment

      • MichaelRNye
        Junior Member
        • Aug 2009
        • 9

        #4
        Hi,

        Was just wondering if you could confirm that the "CLOSED" status is only ever used to indicate the market has "Settled" and nothing else?

        E.g., I understand the "SUSPENDED" status can be temporary for withdrawals or frozen markets, and also means the market has started.

        Also is there any relation between a market hitting "CLOSED" and the results being available via the rss site? Basically just looking for a solid way to know a market has settled/paid without looking at bets themselves.

        Thanks.

        Comment

        • AlgoTrader
          Junior Member
          • Mar 2012
          • 243

          #5
          The market state "CLOSED" means the market is really closed. It is completly closed and that state is declared to be final. So "CLOSED" is in fact absolutly closed and that's it ;-)
          Betfair Bots Made Easy

          Comment

          Working...
          X