Update Order Size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • McTash
    Junior Member
    • Feb 2010
    • 14

    #1

    Update Order Size

    Hi all,

    Either I'm blind, tired or both but I can't seem to find how to update the size of an order in API-NG.

    Like in the UpdateBets call of API 6.
  • Ernests Gulbis
    Junior Member
    • Aug 2009
    • 3

    #2
    replaceOrders
    updateOrders

    Comment

    • McTash
      Junior Member
      • Feb 2010
      • 14

      #3
      Thanks for the response but I can't see the way to modify the size of an existing bet without first cancelling the initial bet and creating a new one.

      UpdateBets in API 6 allowed you to create sub min bets in this fashion.

      Comment

      • BetfairDeveloperProgram
        Administrator
        • Oct 2008
        • 679

        #4
        Hi McTash,

        If you have a 'Unmatched' bet of at least £2.00 on a specfic selectionId in a market, you can submit further placeOrder requests for a stake of less than £2.00 on the same selectionId.

        Thanks

        Neil

        Comment

        • McTash
          Junior Member
          • Feb 2010
          • 14

          #5
          Originally posted by Betfair Developers Program View Post
          Hi McTash,

          If you have a 'Unmatched' bet of at least £2.00 on a specfic selectionId in a market, you can submit further placeOrder requests for a stake of less than £2.00 on the same selectionId.

          Thanks

          Neil
          Ah many thanks. This may make the process even easier! Liking this new API so far. Do you have any ideas about the cost of access and that kind of thing yet?

          EDIT: Having trouble here, I place bet 1 for some value greater than min stake, bet 2 for some value under minimum stakes and both place fine. Trying to cancel bet 1 results in an error INVALID_BET_SIZE. Is this expected behaviour or is my code wrong somewhere?
          Last edited by McTash; 09-07-2013, 04:40 AM.

          Comment

          • AlgoTrader
            Junior Member
            • Mar 2012
            • 243

            #6
            Originally posted by McTash View Post
            Thanks for the response but I can't see the way to modify the size of an existing bet without first cancelling the initial bet and creating a new one.

            UpdateBets in API 6 allowed you to create sub min bets in this fashion.
            First, there is very different stuff of increasing and decreasing the size of bet.

            To decrease the size of bet, you should use cancelOrders. This is very new concept. In API6 you could cancel bets completly using cancelBets but API NG allows to cancel portion of bet using cancelOrders. The betId and position in queue is the same.

            There is no way of increasing bet size without placing a new bet. replaceOrders is unpleasant as it cancels the old bet. I would just place delta as a new bet.
            Betfair Bots Made Easy

            Comment

            Working...
            X