全仓批量撤单
限速规则 5次/1s (UID)
描述
HTTP请求
- POST /api/v2/margin/crossed/batch-cancel-order
请求示例
curl -X POST "https://api.bitget.com/api/v2/margin/crossed/batch-cancel-order" -H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" -d '{"symbol": "BTCUSDT","orderIdList": [{"orderId":"11232132134"},{"clientOid":"mytestOid"}]}'
请求参数
参数名 | 参数类型 | 是否必须 | 描述 |
---|---|---|---|
symbol | String | 是 | 交易对,如BTCUSDT |
orderIdList | List | 是 | 订单ID集合 orderId和clientOid二选一 |
> orderId | String | 否 | 订单ID orderId和clientOid二选一 |
> clientOid | String | 否 | 客户自定义ID orderId和clientOid二选一 |
返回示例
{
"code": "00000",
"data": {
"successList": [
{
"orderId": "121211212122",
"clientOid": "BITGET#121211212122"
}
],
"failureList": [
{
"orderId": "121211212122",
"clientOid": "BITGET#121211212122",
"errorMsg": "Order Cancelled"
}
]
},
"msg": "success",
"requestTime": 1627293504612
}
返回参数
返回字段 | 参数类型 | 字段说明 |
---|---|---|
successList | Array | 成功订单数组 |
> orderId | String | 订单ID |
> clientOid | String | 客户端自定义ID |
failureList | Array | 失败订单数组 |
> orderId | String | 订单ID |
> clientOid | String | 客户端自定义ID |
> errorMsg | String | 错误信息 |