跳到主要内容

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

响应示例

{
"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"
}
]
}
  • POST /api/v1/private/order/batch_cancel_with_external

需要权限: 交易下单

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

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

响应参数:

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