I am having a problem sending multiple place orders, if I send the orders individually I get a "success" response, but when I put them together I get a " -32602" error (Problem parsing the parameters, or a mandatory parameter was not found).
This is 2 orders sent separately:
This is the request sent for the 2 orders as a multiple place order request, I get the -32602 from this:
If someone could show me where the error is it would be much appreciated
cheers Les
This is 2 orders sent separately:
Code:
{"jsonrpc":"2.0","method":"SportsAPING/v1.0/placeOrders","params":{"marketId":"2.101255430","instructions":[{"selectionId":9172548,"handicap":0.0,"side":"LAY","orderType":"LIMIT","limitOrder":{"size":5.0,"price":1.01,"persistenceType":"LAPSE"}}],"customerRef":"ABC"},"id":1}
Code:
{"jsonrpc":"2.0","method":"SportsAPING/v1.0/placeOrders","params":{"marketId":"2.101255430","instructions":[{"selectionId":8564429,"handicap":0.0,"side":"LAY","orderType":"LIMIT","limitOrder":{"size":5.0,"price":1.01,"persistenceType":"LAPSE"}}],"customerRef":"DEF"},"id":1}
This is the request sent for the 2 orders as a multiple place order request, I get the -32602 from this:
Code:
{"jsonrpc":"2.0","method":"SportsAPING/v1.0/placeOrders","params":{"marketId":"2.101255430","instructions":[{"selectionId":9172548,"handicap":0.0,"side":"LAY","orderType":"LIMIT","limitOrder":{"size":5.0,"price":1.01,"persistenceType":"LAPSE"}},{"selectionId":8564429,"handicap":0.0,"side":"LAY","orderType":"LIMIT","limitOrder":{"size":5.0,"price":1.01,"persistenceType":"LAPSE"}}],"customerRef":"XYZ"},"id":1}
cheers Les


Comment