跳到主要内容

根据外部订单号列表批量撤销订单

HTTP请求

  • POST /api/v1/private/order/batch_cancel_with_external

接口权限要求: 交易下单

请求参数 list集合;例:[{"symbol":"BTC_USDT", "externalOid":"ext_11"}]

参数名类型是否必填说明
symbolstringtrue交易对
externalOidstringtrue外部订单号

返回参数

参数名类型说明
orderIdlong订单ID号
errorCodeint错误编码
errorMsgstring错误原因

响应

{
"success":true,
"code":0,
"data":[
{
"orderId":101716841474621953,
"errorCode":2040,
"errorMsg":"order not exist"
},
{
"orderId":108885377779302912,
"errorCode":2041,
"errorMsg":"order state cannot be cancelled"
},
{
"orderId":108886241042563584,
"errorCode":0,
"errorMsg":"success"
}
]
}