批量撤单 (TRADE)
- DELETE
/api/v3/order/batch
权重(IP): 5, 权重(UID): 10
请求参数
| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| orderIds | Array | 条件必填 | 待撤销的订单 ID 列表,与 origClientOrderIds 至少填写一个。 |
| origClientOrderIds | Array | 条件必填 | 待撤销的客户端订单号列表,与 orderIds 至少填写一个。 |
请求示例
curl -X DELETE "https://api-spot.weex.com/api/v3/order/batch" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"orderIds": [702345678901234567, 702345678901234568]
}'
返回参数
| 字段名 | 类型 | 说明 |
|---|---|---|
| orderList | Array<Object> | 每笔撤单的执行结果。 |
| → orderId | Long | 撤单成功返回的订单 ID。 |
| → status | String | 撤单后的订单状态。 |
| → errorMsg | String | 撤单失败时的错误信息。 |
返回示例
{
"orderList": [
{
"orderId": 702345678901234567,
"status": "CANCELED"
},
{
"orderId": 702345678901234568,
"status": "EXPIRED",
"errorMsg": "order not found"
}
]
}