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

# Cancel Order

Cancel a single order. At least one of `orderId` or `origClientOrderId` must be provided; if both are provided, `orderId` takes precedence. 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/order": {
      "delete": {
        "tags": [
          "Spot - Order Placement/Cancellation Module"
        ],
        "summary": "Cancel Order",
        "description": "Cancel a single order. At least one of `orderId` or `origClientOrderId` must be provided; if both are provided, `orderId` takes precedence. Requires spot trading permission (`SPOT_TRADE`).",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelOrderRequest"
              },
              "example": {
                "symbol": "AVAXHKD",
                "orderId": "2269178542020688128"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Order cancelled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpotOrderResponse"
                },
                "example": {
                  "category": "SPOT",
                  "orderId": "2269178542020688128",
                  "clientOrderId": "23249115-a98e-4b15-a8d8-02978c8fa7be",
                  "symbol": "AVAXHKD",
                  "type": "LIMIT",
                  "timeInForce": "GTC",
                  "side": "BUY",
                  "origQty": "1.00000000",
                  "price": "53.42000000",
                  "executedQty": "0.46000000",
                  "status": "CANCELED",
                  "cumQuote": "24.57320000",
                  "avgPrice": "53.42000000",
                  "updateTime": "1785243394524",
                  "expireTime": null
                }
              }
            }
          }
        }
      }
    }
  },
  "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
          }
        }
      },
      "CancelOrderRequest": {
        "type": "object",
        "required": [
          "symbol"
        ],
        "properties": {
          "symbol": {
            "type": "string",
            "description": "Trading pair",
            "example": "AVAXHKD"
          },
          "orderId": {
            "type": "string",
            "description": "Order ID",
            "example": "2269178542020688128"
          },
          "origClientOrderId": {
            "type": "string",
            "description": "Custom client order ID"
          }
        }
      }
    }
  },
  "x-readme": {}
}
```