Skip to main content

Cancel All Orders

Description

Cancel all current pending orders.

HTTP Request

DELETE /v3/trade/allOrders

Request Parameters

ParameterRequiredTypeDescription
symbolNoStringA trading pair, consisting of two currencies: base currency and quote currency
sideNoStringBUY, SELL.Leave blank and default to all

Response Parameters

ParameterTypeDescription
ordIdStringOrder ID
clOrdIdStringOrder ID as assigned by the user

Request Example

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

Response Example

{
"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"
}