I'm sending out this post data (with appropriate session token and app key)
But the result comes back as
Could someone tell me where I went wrong?
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}
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