跳到主要内容

全部撤单

描述

撤销当前全部的挂单。

HTTP请求

DELETE /v3/trade/allOrders

请求参数

参数是否必填类型描述
symbolString交易对。常用形式为“基础货币”+“报价货币”
sideString枚举BUY, SELL,不填默认全部

响应参数

参数类型描述
ordIdString订单编号
clOrdIdString用户自定义订单ID

请求示例

{
"symbol": "BTC_USDT_PERP",
"side": "BUY"
}

响应示例

{
"code":200,
"data":[
{
"clOrdId":"b93fe6bd-30eb-4d0e-8c99-0288a9156837",
"code":200,
"msg":"Success",
"ordId":"331378951169769472"
},
{
"clOrdId":"225c8607-d98f-4a2e-a27b-faea04fe718f",
"code":200,
"msg":"Success",
"ordId":"331378951182352384"
},
{
"clOrdId":"9e36e89c-6cab-45c6-9c8a-245b7547601a",
"code":200,
"msg":"Success",
"ordId":"331378951199129601"
}
],
"msg":"Success"
}