PHP placeOrders example returning PERMISSION_DENIED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • generalmanyara
    Junior Member
    • Dec 2013
    • 1

    #1

    PHP placeOrders example returning PERMISSION_DENIED

    I'm sending out this post data (with appropriate session token and app key)

    Code:
    { "jsonrpc": "2.0",
      "method": "SportsAPING/v1.0/placeOrders",
      "params" :{"marketId":"1.112242761",
                    "instructions":
                         [{"selectionId":7098012,
                           "handicap":"0",
                           "side":"BACK",
                           "orderType":
                           "LIMIT",
                           "limitOrder":{"size":4,
                                        "price":1.05,
                                        "persistenceType":"LAPSE"}
                           }],
                "customerRef":"uniqueid"
                },
     "id": 1}
    But the result comes back as
    Code:
    [customerRef] => 1.1122427617098012
        [marketId] => 1.112242761
        [instructionReports] => Array
            (
                [0] => stdClass Object
                    (
                        [instruction] => stdClass Object
                            (
                                [selectionId] => 7098012
                                [handicap] => 0
                                [limitOrder] => stdClass Object
                                    (
                                        [size] => 4
                                        [price] => 1.05
                                        [persistenceType] => LAPSE
                                    )
    
                                [orderType] => LIMIT
                                [side] => BACK
                            )
    
                        [status] => FAILURE
                        [errorCode] => ERROR_IN_ORDER
                    )
    
            )
    
        [status] => FAILURE
        [errorCode] => PERMISSION_DENIED
    Could someone tell me where I went wrong?
Working...
X