---
updatedAt: 2026-08-19T09:52:45.000Z
agentTools:
  projectIndex: https://apidocs.bct.host/llms.txt
---

# Cancel All Orders

Cancel all open/unfilled orders. Optional `symbol` parameter to cancel orders for a specific trading pair only. Requires spot trading permission (SPOT_TRADE).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "HK Spot OpenAPI",
    "description": "Hong Kong Station Spot OpenAPI documentation v5. Uses Header + HMAC-SHA512 signature authentication mechanism.",
    "version": "5.0.0"
  },
  "servers": [
    {
      "url": "https://trade-hk.osl.com",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Spot - Order Placement/Cancellation Module",
      "description": "Endpoints for order placement, batch order placement, cancellation, batch cancellation, and cancel-all"
    }
  ],
  "paths": {
    "/api/v5/allOpenOrders": {
      "delete": {
        "tags": [
          "Spot - Order Placement/Cancellation Module"
        ],
        "summary": "Cancel All Orders",
        "description": "Cancel all open/unfilled orders. Optional `symbol` parameter to cancel orders for a specific trading pair only. Requires spot trading permission (SPOT_TRADE).",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "symbol": {
                    "type": "string",
                    "description": "Trading pair, optional"
                  }
                }
              },
              "example": {
                "symbol": "AVAXHKD"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns an array where each element is order information or failure details",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SpotOrderResponse"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key",
        "description": "API Key, obtained via the OpenAPI management page"
      }
    },
    "schemas": {
      "SpotOrderResponse": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "description": "Product category",
            "example": "SPOT"
          },
          "orderId": {
            "type": "string",
            "description": "Order ID",
            "example": "2269176161442789632"
          },
          "clientOrderId": {
            "type": "string",
            "description": "Client order ID",
            "example": "13623-buy-00001"
          },
          "symbol": {
            "type": "string",
            "description": "Trading pair",
            "example": "AVAXHKD"
          },
          "type": {
            "type": "string",
            "description": "Order type",
            "example": "MARKET"
          },
          "timeInForce": {
            "type": "string",
            "description": "Time in force",
            "example": "IOC"
          },
          "side": {
            "type": "string",
            "description": "Order side",
            "example": "BUY"
          },
          "origQty": {
            "type": "string",
            "description": "Original order quantity",
            "example": "0.00000000"
          },
          "price": {
            "type": "string",
            "description": "Order price",
            "example": "0.00000000"
          },
          "executedQty": {
            "type": "string",
            "description": "Executed quantity",
            "example": "0.00000000"
          },
          "status": {
            "type": "string",
            "description": "Order status",
            "example": "NEW"
          },
          "cumQuote": {
            "type": "string",
            "description": "Cumulative quote asset executed amount",
            "example": "0.00000000"
          },
          "avgPrice": {
            "type": "string",
            "description": "Average price",
            "example": "0.00000000",
            "nullable": true
          },
          "updateTime": {
            "type": "string",
            "description": "Update time",
            "example": "1785242878073"
          },
          "expireTime": {
            "type": "string",
            "description": "Expiration time",
            "example": "1786953500000",
            "nullable": true
          }
        }
      }
    }
  },
  "x-readme": {}
}
```