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
| Field | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Business type: spot / linear |
symbol | string | No | trading pair (omit to cancel all) |
settleCoin | string | No | Settle currency: valid only for linear; symbol or settleCoin must be selected. |
Response Parameters
| Field | Type | Description |
|---|---|---|
data.list | array | List of canceled orders |
data.list[].orderId | string | System order ID of canceled orders |
data.list[].orderLinkId | string | Custom order ID of the canceled order. May be null if not set. |
data.success | string | success 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
}