Skip to main content

Cancel All Orders

Description​

Cancel all orders

HTTP Request​

  • POST /api/v3/order/cancel-all
  • Supported Products: spot / linear
  • Rate Limit: 10 requests per second per UID

Request Parameters​

FieldTypeRequiredDescription
categorystringYesBusiness type: spot / linear
symbolstringNotrading pair (omit to cancel all)
settleCoinstringNoSettle currency: valid only for linear; symbol or settleCoin must be selected.

Response Parameters​

FieldTypeDescription
data.listarrayList of canceled orders
data.list[].orderIdstringSystem order ID of canceled orders
data.list[].orderLinkIdstringCustom order ID of the canceled order. May be null if not set.
data.successstringsuccess indicator for all cancel requests, returns ""1"" upon success

Request Example​

POST /api/v3/order/cancel-all HTTP/1.1
Host: openapi.lbank.com
Content-Type: application/json
ex-api-key: <your_api_key>
ex-timestamp: <current_unix_timestamp_ns>
ex-nonce: <unique_random_hex>
ex-signature: <your_signature>
ex-client-type: API

{
"category": "linear",
"symbol": "BTCUSDT"
}

Response Example​

HTTP/1.1 200 OK
Content-Type: application/json

{
"code": 200,
"message": "Success",
"data": {
"list": [
{
"orderId": "<existing_order_id_1>",
"orderLinkId": "b320fe1a-478c-4d2e-a219-000000000003"
},
{
"orderId": "<existing_order_id_2>",
"orderLinkId": "b320fe1a-478c-4d2e-a219-000000000004"
}
],
"success": "1"
},
"extras": null
}