problem placing orders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snowmoneky
    Junior Member
    • Feb 2014
    • 18

    #1

    problem placing orders

    I'm getting this response when placing an order:

    "errorDetails":"INSUFFICIENT_PRIVILEGES","errorCod e":"SERVICE_BUSY"

    This is the url I'm using: https://api.betfair.com/exchange/bet...0/placeOrders/

    And this is the body of the http POST:

    {
    "marketId": "1.112645442",
    "instructions": [
    {
    "orderType": "LIMIT",
    "selectionId": 526007,
    "handicap": 0.0,
    "side": "BACK",
    "limitOrder": {
    "size": 2.0,
    "price": 1000.0,
    "persistenceType": "LAPSE"
    }
    }
    ],
    "locale": "en_US"
    }

    I am not using the delay key, and I get the same error running the sample code (other end points are working fine).
  • snowmoneky
    Junior Member
    • Feb 2014
    • 18

    #2
    Solved it - was using the wrong key I believe I needed to call disableHtmlEscaping() on the gson parser

    Comment

    • Hamlet6
      Junior Member
      • Jan 2014
      • 9

      #3
      I am also getting this error using the 'delayed' key.

      If the solution is to use the production key, how are we supposed to develop/test the order system of our applications without using real orders? Or is this the only way?

      Comment

      • betdynamics
        Junior Member
        • Sep 2010
        • 534

        #4
        The "delayed" key isn't a test-bed, is it?

        I thought that all the "delayed" key meant was that your prices were old prices (i.e. delayed prices) and did not reflect the current state of the market.

        All functions (like placing bets) still work against the normal exchange - so you are live betting anyway, aren't you?

        Have I misinterpreted what the "delayed" key is?

        Comment

        • jptrader
          Junior Member
          • Nov 2009
          • 82

          #5
          Check the documentation:
          https://api.developer.betfair.com/se...plication+Keys

          Comment

          Working...
          X