Invalid_price

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vadocz
    Junior Member
    • Jul 2013
    • 2

    #1

    Invalid_price

    Ladies and Gentlemen!

    I use the API v6 to bet. I put a PlaceBet action, with correct data (Price, Size, etc) and it is with
    Error message INVALID_PRICE rejected. I've found it's always about the next format of the price:

    2.xx where xx is the decimal digits corresponding to the "Betfair Price Increments".

    The following examples I have taken:

    2014.01.24. 14:06:24: type: B price: 2,64 size: 2 category: E persistence: IP market: 112568319 runner: 5293195
    2014.01.24. 14:06:24: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.01.25. 15:50:25: type: B price: 2,74 size: 2 category: E persistence: IP market: 112591107 runner: 5869521
    2014.01.25. 15:50:26: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.01.25. 16:23:12: type: L price: 2,22 size: 2,1 category: E persistence: IP market: 112589820 runner: 2687123
    2014.01.25. 16:23:12: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.01. 14:29:05: type: L price: 2,76 size: 10,5 category: E persistence: IP market: 112646578 runner: 4136655
    2014.02.01. 14:29:05: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.09. 14:25:01: type: L price: 2,76 size: 10 category: E persistence: IP market: 112761168 runner: 7388733
    2014.02.09. 14:25:01: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.12. 16:04:01: type: B price: 2,86 size: 10,5 category: E persistence: IP market: 112793779 runner: 5392517
    2014.02.12. 16:04:02: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.13. 15:50:21: type: B price: 2,22 size: 10 category: E persistence: IP market: 112809442 runner: 6296829
    2014.02.13. 15:50:22: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.13. 19:01:52: type: L price: 2,74 size: 10,5 category: E persistence: IP market: 112802257 runner: 8145912
    2014.02.13. 19:01:53: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.19. 17:04:06: type: B price: 2,36 size: 10,5 category: E persistence: IP market: 112889093 runner: 972584
    2014.02.19. 17:04:06: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.24. 14:48:35: type: B price: 2,76 size: 10 category: E persistence: IP market: 112979957 runner: 6390431
    2014.02.24. 14:48:35: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.25. 16:41:54: type: B price: 2,22 size: 10 category: E persistence: IP market: 112987404 runner: 7378273
    2014.02.25. 16:41:54: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    Yours sincerely László Vadócz

    Username: vadocz
    Account number: 1181685Ladies and Gentlemen!

    I use the API v6 to bet. I put a PlaceBet action, with correct data (Price, Size, etc) and it is with
    Error message INVALID_PRICE rejected. I've found it's always about the next format of the price:

    2.xx where xx is the decimal digits corresponding to the "Betfair Price Increments".

    The following examples I have taken:

    2014.01.24. 14:06:24: type: B price: 2,64 size: 2 category: E persistence: IP market: 112568319 runner: 5293195
    2014.01.24. 14:06:24: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.01.25. 15:50:25: type: B price: 2,74 size: 2 category: E persistence: IP market: 112591107 runner: 5869521
    2014.01.25. 15:50:26: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.01.25. 16:23:12: type: L price: 2,22 size: 2,1 category: E persistence: IP market: 112589820 runner: 2687123
    2014.01.25. 16:23:12: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.01. 14:29:05: type: L price: 2,76 size: 10,5 category: E persistence: IP market: 112646578 runner: 4136655
    2014.02.01. 14:29:05: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.09. 14:25:01: type: L price: 2,76 size: 10 category: E persistence: IP market: 112761168 runner: 7388733
    2014.02.09. 14:25:01: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.12. 16:04:01: type: B price: 2,86 size: 10,5 category: E persistence: IP market: 112793779 runner: 5392517
    2014.02.12. 16:04:02: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.13. 15:50:21: type: B price: 2,22 size: 10 category: E persistence: IP market: 112809442 runner: 6296829
    2014.02.13. 15:50:22: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.13. 19:01:52: type: L price: 2,74 size: 10,5 category: E persistence: IP market: 112802257 runner: 8145912
    2014.02.13. 19:01:53: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.19. 17:04:06: type: B price: 2,36 size: 10,5 category: E persistence: IP market: 112889093 runner: 972584
    2014.02.19. 17:04:06: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.24. 14:48:35: type: B price: 2,76 size: 10 category: E persistence: IP market: 112979957 runner: 6390431
    2014.02.24. 14:48:35: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    2014.02.25. 16:41:54: type: B price: 2,22 size: 10 category: E persistence: IP market: 112987404 runner: 7378273
    2014.02.25. 16:41:54: id: 0 | resultcode: INVALID_PRICE | return: False | size: 0 | price:0

    Yours sincerely László Vadócz
  • Peter Simple
    Junior Member
    • Aug 2009
    • 32

    #2
    An idea: price 2.22 instead of 2,22

    Comment

    • vadocz
      Junior Member
      • Jul 2013
      • 2

      #3
      Hi Peter!

      I use Betfair API v6 and C# programming language. For price is used
      the double type of C# as prescribed in API v6 Reference Guide.
      The decimal comma or decimal point only appears in the formatted
      output.

      The different price other than those mentioned is accepted.
      For example 1,80 1,81 ... 1,99 and 3.00 3,05 3,10 ... 4,00 4,10 4,20
      and so on.

      greeting L. Vadócz

      Comment

      • betdynamics
        Junior Member
        • Sep 2010
        • 534

        #4
        Try using a Math.Round(xxx, 2) function when setting the price in the PlaceBets call.

        Comment

        Working...
        X