I’m trying to cancel an order on Spot Test Network in Postman. I provide all the params required. I tried both options, orderId
or origClientOrderId
, but I keep getting an -1105
error response for both:
{
"code": -1105,
"msg": "Parameter 'orderId' was empty."
}
{
"code": -1105,
"msg": "Parameter 'origClientOrderId' was empty."
}
My order:
{
"symbol": "BTCUSDT",
"orderId": 3...8,
"orderListId": -1,
"clientOrderId": "my_order_id_1",
"price": "7000.00000000",
"origQty": "0.01000000",
"executedQty": "0.01000000",
"cummulativeQuoteQty": "70.00000000",
"status": "FILLED",
"timeInForce": "GTC",
"type": "LIMIT",
"side": "BUY",
"stopPrice": "0.00000000",
"icebergQty": "0.00000000",
"time": 1595187196269,
"updateTime": 1595197730133,
"isWorking": true,
"origQuoteOrderQty": "0.00000000"
},
My request params for canceling the order above:
{
"symbol": BTCUSDT,
// I send either orderId or origClientOrderId from the order above
"orderId": 3...8,
"origClientOrderId": my_order_id_1,
"timestamp": {{timestamp}},
"signature": {{signature}}
}
cURL request:
curl --location --request DELETE 'https://testnet.binance.vision/api/v3/order?symbol=BTCUSDT&origClientOrderId=my_order_id_1×tamp={TIMESTAMP}&signature={SIGNATURE}' \
--header 'Content-Type: application/json' \
--header 'X-MBX-APIKEY: {YOUR_API_KEY}'
Why? What’s wrong with the request?