Hi, having an issue with the placeOrder request. Here is my Json call
{"jsonrpc": "2.0",
"method": "SportsAPING/v1.0/placeOrders",
"params": {"marketId": 1.170718570 ,
"instructions":{"selectionId": 110503,
"handicap": "0",
"side": "BACK",
"orderType": "LIMIT",
"limitOrder": {"size": "2",
"price": 1.1,
"persistenceType": "LAPSE"}}},
"id": 1}
the response is
{'jsonrpc': '2.0', 'error': {'code': -32602, 'message': 'DSC-0018'}, 'id': 1}
the error code says
Cant for life of me find the parameter. Seems identical to the visualistion code.
Can anyone help?
{"jsonrpc": "2.0",
"method": "SportsAPING/v1.0/placeOrders",
"params": {"marketId": 1.170718570 ,
"instructions":{"selectionId": 110503,
"handicap": "0",
"side": "BACK",
"orderType": "LIMIT",
"limitOrder": {"size": "2",
"price": 1.1,
"persistenceType": "LAPSE"}}},
"id": 1}
the response is
{'jsonrpc': '2.0', 'error': {'code': -32602, 'message': 'DSC-0018'}, 'id': 1}
the error code says
| MandatoryNotDefined | Client | 400 | A parameter marked as mandatory was not provided |
Can anyone help?


Comment