Skip to main content

Cancel All Open Orders

Cancel every open order on the exchange. Optionally scope to a single symbol.

HTTP

MethodPOST
Endpoint/trade/api/v2/futures/cancel_all
Rate limit10 requests per 60 seconds

Request Parameters

ParameterTypeMandatoryDescription
exchangestringYesEXCHANGE_2.
symbolstringNoIf provided, only cancel orders on this symbol (e.g. BTCUSDT). If omitted, cancel everything across all symbols.

This also cancels TP/SL orders (TAKE_PROFIT_MARKET / STOP_MARKET).

Example

import requests

body = {"exchange": "EXCHANGE_2"}
headers, path = sign_request("POST", "/trade/api/v2/futures/cancel_all")
response = requests.post(BASE_URL + path, headers=headers, json=body)
print(response.json())

Response

{
"data": {
"orders_ids": [
"01936be4-2571-7a3f-97fa-a29a2b85d717",
"01936be4-9e37-7487-8e31-20fede6ef271"
]
}
}

orders_ids lists every order that was sent for cancellation. Each one transitions through CANCELLATION_RAISED to CANCELLED independently — poll Get Order Status on each order_id to confirm.