Market results via api.ng? non-runners?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bnl
    Junior Member
    • Nov 2012
    • 108

    #1

    Market results via api.ng? non-runners?

    Hi!
    I'm almost done starting up a new type of bot
    written for api-ng.
    But some questions remains:

    On https://api.developer.betfair.com/se.../Betting+Enums
    I can see these values for RunnerStatus
    Value
    ACTIVE
    WINNER
    LOSER
    REMOVED_VACANT
    REMOVED

    The WINNER/LOSER implies that I can get the result of a market
    via api-ng ?
    How would I accomplish that ?
    And how long is the data saved?

    Also, what happens when the runner I bet on, in a BACK bet, becomes a non-runner?
    And what happens if it is a LAY bet?


    thanks
    /Björn
  • AlgoTrader
    Junior Member
    • Mar 2012
    • 243

    #2
    Don't you understand 'WINNER' and 'LOSER' words? ;-)

    BF guys told that those statuses are set shortly after market final suspend and live for a period until market is closed. That's my current understanding of the stuff, it may differ from reality though.
    Betfair Bots Made Easy

    Comment

    • bnl
      Junior Member
      • Nov 2012
      • 108

      #3
      Originally posted by AlgoTrader View Post
      Don't you understand 'WINNER' and 'LOSER' words? ;-)
      Well, I do.
      So you mean I can issue another listMarketBook query,
      after the race and get the results?
      Nice. Would also be nice to know for how long
      it is available


      Originally posted by AlgoTrader View Post
      BF guys told that those statuses are set shortly after market final suspend and live for a period until market is closed. That's my current understanding of the stuff, it may differ from reality though.

      Ok, So I poll listMarketBook until market status
      is SUSPENDED, and check the runners, hoping them
      to have another status than ACTIVE, or else keep polling.

      I'll try that. Thanks

      Any comments on what happens with a bet on a non-runner?
      The reason I ask is that I think (would like to think)
      that it is canceled and money return.

      But, where I live, it is (at least in betting over
      several races) common to get a 'reserve' instead.
      That is if runner 5 is a non-runner, unless you specified
      a reserve yourself, the betting company assigns you a reserve
      say runner 2, based on some known algorithm, like most betted.

      (You can't do LAY-bets in Sweden, as far as I know)


      /Björn

      Comment

      Working...
      X