跳到主要内容

逐仓批量撤单

限速规则 5次/1s (UID)

描述

HTTP请求

  • POST /api/v2/margin/isolated/batch-cancel-order
请求示例
curl -X POST "https://api.bitget.com/api/v2/margin/isolated/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":"121211212122", "clientId":"121211212122" } ]}'

请求参数

参数名参数类型是否必须描述
symbolString交易对,如BTCUSDT
orderIdListList订单ID集合
> orderIdString订单ID
orderIdclientOid必传一项
> clientOidString用户自定义ID
orderIdclientOid必传一项
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1695622930742,
"data": {
"successList": [
{
"orderId": "121211212122",
"clientOid": "121211212122"
}
],
"failureList": [
]
}
}

返回参数

返回字段参数类型字段说明
successListArray成功订单数组
> orderIdString订单ID
> clientOidString客户端自定义ID
failureListArray失败订单数组
> clientOidString客户端自定义ID
> errorMsgString错误信息