跳到主要内容

计划委托撤单

普通用户10次/S 根据uid限频

描述

计划委托撤单接口,可按产品类型、交易对名称或计划委托订单ID进行撤单。

HTTP请求

  • POST /api/v2/mix/order/cancel-plan-order
请求示例
curl -X POST "https://api.bitget.com/api/v2/mix/order/cancel-plan-order" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{
"orderIdList": [
{
"orderId": "123",
"clientOid": "2321"
},
{
"orderId": "",
"clientOid": "666"
},
{
"orderId": "233",
"clientOid": ""
}
],
"symbol": "ETHUSDT",
"productType": "usdt-futures",
"marginCoin": "USDT"
}'

请求参数

参数名参数类型是否必须描述
orderIdListList计划委托订单id集合。
若传递,symbol不可为空,且需与symbol/productType/planType对齐
> orderIdString计划委托订单id
orderId和clientOid必须两者传一个,同传时以orderId为准。
> clientOidString自定义计划委托订单id
orderId和clientOid必须两者传一个,同传时以orderId为准。
symbolString交易对 如:ethusdt
productTypeString产品类型
USDT-FUTURES USDT专业合约
COIN-FUTURES 混合合约
USDC-FUTURES USDC专业合约
SUSDT-FUTURES USDT专业合约模拟盘
SCOIN-FUTURES 混合合约模拟盘
SUSDC-FUTURES USDC专业合约模拟盘
marginCoinString保证金币种 必须大写
planTypeString计划委托类型
normal_plan 普通计划委托(默认)
profit_plan 分批止盈
loss_plan 分批止损
pos_profit 仓位止盈
pos_loss 仓位止损
moving_plan 移动止盈止损
返回示例
{
"code": "00000",
"data": {
"successList": [
{
"orderId": "121212121212",
"clientOid": "BITGET#1627293504612"
},
{
"orderId": "21221",
"clientOid": ""
}
],
"failureList": [
{
"orderId": "232",
"clientOid": "321342",
"errorMsg": "notExistend"
},
{
"orderId": "21221",
"clientOid": "",
"errorMsg": "notExisted"
}
]
},
"msg": "success",
"requestTime": 1627293504612
}

返回参数

返回字段参数类型字段说明
successListList<Object>所撤成功单集合。
> orderIdString订单id
> clientOidString自定义订单id
failureListList<Object>所撤失败单集合。
> orderIdString订单id
> clientOidString自定义订单id
>errorMsgString失败原因