SUSPENDED is ambigous

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EKK
    Junior Member
    • Aug 2010
    • 38

    #1

    SUSPENDED is ambigous

    Hi,

    When a market turn suspended - I don't know whether it is possible it is going to come back ACTIVE or if it just means "betting is over now wait for market to close".

    In some case - for a goal in foot for example, or in horse racing before turning in play, or when a horse is removed - then it is going to come back active.

    in some other case - end of IP horse race, or horse race start (when no-inplay) - then it is means that's it. In which

    It would be nice to have a different MarketStatus - b/c the strategy to adopt is different - in order to minimise the number of calls to the API. If a horse is removed when you want to refresh your market frequently in order not to miss the "ACTIVE" again. When the race is over - you don't mind refreshing every minute until it is CLOSED.

    just a suggestion

    EKK
  • AlgoTrader
    Junior Member
    • Mar 2012
    • 243

    #2
    Refreshing market every minute - it's just free. API NG allows multiple markets to be refreshed in a single call.

    SUSPENDED is immediate (at least in theory), while CLOSED means all the bets were settled. There is no just SETTLING state. Market cannot go CLOSED from ACTIVE, there are usually lot's of pending bets to be settled.

    I real world, market is settled when a single selectionId has huge queue of people wanting to back 1.01, all the other selectionIds have people who want to lay 1000 (which is crazy otherwise). If not so, then market is out of interest or have no live scores sources
    Betfair Bots Made Easy

    Comment

    • EKK
      Junior Member
      • Aug 2010
      • 38

      #3
      Also in the same spirit - when the market is closed - it does mean necessarly that the market is SETTLED.

      Sometimes - it takes a while before the matched bets to appear in the AccountStatement.

      Then - in the case I have no matched bet on a market - then nothing will appear in the account statement (b/c I have no match bets) - then I don't know if I should try to call AccountStatement again or if I should leave it.

      You could say I just need to know whether I have matched bets or not - in order to make a decision - but the problem is that in the case of a very late match bet (just before market turn suspended) - and if the market turn from SUSPENDED to CLOSED quickly - matched bets don't appear when the market is CLOSED - then I can't know if I had any matched bet or not… catch 22 here…

      Having a SETTLED status on the market would solve this.

      Also regarding my previous question - going from ACTIVE to CLOSED - when "betting is over" would solve it. SUSPENDED should be reserved for markets which are going to come back ACTIVE (or very likely to - think about a goal at 94th minutes of a game - the market is going to be suspended b/c of the goal - and then the referee stop the game -> closed).

      hope this help

      Comment

      • EKK
        Junior Member
        • Aug 2010
        • 38

        #4
        Thanks AlgoTrader - but are you sure CLOSED means market is settled - often there is a delay (usually it is like a minute - sometimes it is more) between CLOSED and "I can get my settled bets from account statement" - this is what I have observed. Have ever you noticed it?
        This delay might be due to some internal betfair delay between some Database or something...

        Comment

        • AlgoTrader
          Junior Member
          • Mar 2012
          • 243

          #5
          CLOSED is the final market state. It's guarantied to be final. (there is state diagram somewhere in the doc)

          SUSPENDED is not the final state, market can go SUSPENDED multiple times.

          market goes CLOSED only after all the bets on the market were somehow settled - won, lost, voided, etc. It always takes time, from just several seconds to many dozens of minutes.

          That's just internal Betfair kitchen that is out of interest.
          Betfair Bots Made Easy

          Comment

          Working...
          X