Helo I want to delete somo orders and I want to do it using DELETE /fapi/v1/batchOrders, the mandatory param are Symbol and timestamp.
params = {
“symbol”: XSPUSDT,
“timeInForce”:“GTC”,
“recvWindow”:“20000”
}
response = send_signed_request(‘DELETE’, ‘/fapi/v1/batchOrders’, params)
print(“Orders Deleted”,response)
But I get this error:
{‘code’: -1102, ‘msg’: “Param ‘orderIdList’ or ‘origClientOrderIdList’ must be sent, but both were empty/null!”}
Does anybody knows what can I do please?
Regards,
Orlando Gautier
MJW
February 9, 2021, 10:52pm
2
I think the error msg explains itself pretty well. If you want to delete multiple orders, you need to pass below param:
orderIdList=[orderId1, orderId2]
According to Binance Docs:
DELETE /fapi/v1/batchOrders (HMAC SHA256)
The only Mandatory params are Symbol and timestamp, I am passing those params:
params = {
“symbol”: XSPUSDT,
“timeInForce”:“GTC”,
}
response = send_signed_request(‘DELETE’, ‘/fapi/v1/batchOrders’, params)
I tried this, but I got the same error.
What should I do?
Regards,
Orlando Gautier
MJW
February 9, 2021, 11:09pm
4
“Either orderIdList or origClientOrderIdList must be sent.”…