---
updatedAt: 2026-08-18T12:22:52.000Z
agentTools:
  projectIndex: https://apidocs.bct.host/llms.txt
---

# Query Single Order

Query data for a specified `orderId`. At least one of `orderId` or `clientOrderId` must be provided; if both are provided, `orderId` takes precedence (authentication required).

# 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 Module",
      "description": "Order management endpoints"
    }
  ],
  "paths": {
    "/api/v5/order": {
      "get": {
        "tags": [
          "Spot - Order Module"
        ],
        "summary": "Query Single Order",
        "description": "Query data for a specified `orderId`. At least one of `orderId` or `clientOrderId` must be provided; if both are provided, `orderId` takes precedence (authentication required).",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "description": "Trading pair",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orderId",
            "in": "query",
            "description": "Order ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientOrderId",
            "in": "query",
            "description": "Custom client order ID",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Query successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpotQueryOrder"
                },
                "example": {
                  "orderId": "2267044964435636224",
                  "clientOrderId": "37e761de-18a2-4129-9213-cd221e4f7565",
                  "accountUuid": "017ef1b6-22ae-44ba-b3e0-4116068c5e29",
                  "symbol": "BTCUSD",
                  "baseAsset": "BTC",
                  "quoteAsset": "USD",
                  "orderType": "MARKET",
                  "side": "SELL",
                  "price": "0",
                  "quantity": "0.0007739",
                  "amount": "0",
                  "executedQty": "0.0007739",
                  "executedAmount": "49.6",
                  "timeInForce": "IOC",
                  "status": "FILLED",
                  "cumTransactFee": "-0.024803881",
                  "feeAsset": "USD",
                  "lastPriceAtPlace": "64101",
                  "makerFeeRate": "0",
                  "takerFeeRate": "0.0005",
                  "rejectReason": null,
                  "cancelQty": "0",
                  "cancelAmount": "0",
                  "orderTime": "1786947822889",
                  "updateTime": "1786947822889",
                  "expireTime": null
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key",
        "description": "API Key, obtained via the OpenAPI management page"
      }
    },
    "schemas": {
      "SpotQueryOrder": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Primary key ID, can be passed in subsequent requests for pagination",
            "example": "2184213131143033600"
          },
          "orderId": {
            "type": "string",
            "description": "Order ID",
            "example": "2184213131143033600"
          },
          "clientOrderId": {
            "type": "string",
            "description": "Custom client order ID",
            "example": "574366a1-7ac1-4edc-a2c8-135d4b710847"
          },
          "accountUuid": {
            "type": "string",
            "description": "Account UUID",
            "example": "017ef1b6-22ae-44ba-b3e0-4116068c5e29"
          },
          "symbol": {
            "type": "string",
            "description": "Trading pair",
            "example": "BTCUSD"
          },
          "baseAsset": {
            "type": "string",
            "description": "Base asset",
            "example": "BTC"
          },
          "quoteAsset": {
            "type": "string",
            "description": "Quote asset",
            "example": "USD"
          },
          "orderType": {
            "type": "string",
            "description": "Order type (LIMIT/MARKET)",
            "example": "LIMIT",
            "enum": [
              "LIMIT",
              "MARKET"
            ]
          },
          "side": {
            "type": "string",
            "description": "Order side",
            "example": "BUY"
          },
          "price": {
            "type": "string",
            "description": "Order price",
            "example": "60000.00000000"
          },
          "quantity": {
            "type": "string",
            "description": "Order quantity",
            "example": "1000"
          },
          "amount": {
            "type": "string",
            "description": "Order value",
            "example": "10000"
          },
          "executedQty": {
            "type": "string",
            "description": "Executed quantity",
            "example": "0.00100000"
          },
          "executedAmount": {
            "type": "string",
            "description": "Executed amount/value",
            "example": "1000"
          },
          "timeInForce": {
            "type": "string",
            "description": "Time in force strategy",
            "example": "GTC",
            "enum": [
              "GTC",
              "IOC",
              "FOK",
              "POST_ONLY",
              "GTD"
            ]
          },
          "status": {
            "type": "string",
            "description": "Order status",
            "example": "NEW"
          },
          "cumTransactFee": {
            "type": "string",
            "description": "Cumulative transaction fee",
            "example": "0.00001000"
          },
          "feeAsset": {
            "type": "string",
            "description": "Fee asset currency",
            "example": "USD"
          },
          "lastPriceAtPlace": {
            "type": "string",
            "description": "Latest trade price at order placement",
            "example": "6.375"
          },
          "makerFeeRate": {
            "type": "string",
            "description": "Maker fee rate",
            "example": "0.002"
          },
          "takerFeeRate": {
            "type": "string",
            "description": "Taker fee rate",
            "example": "0.002"
          },
          "rejectReason": {
            "type": "string",
            "description": "Order rejection reason",
            "example": "Timeout matching",
            "nullable": true
          },
          "cancelQty": {
            "type": "string",
            "description": "Cancelled quantity (self-trade prevention)",
            "example": "10"
          },
          "cancelAmount": {
            "type": "string",
            "description": "Cancelled amount (self-trade prevention)",
            "example": "10"
          },
          "orderTime": {
            "type": "string",
            "description": "Place order timestamp",
            "example": "1786947822889"
          },
          "updateTime": {
            "type": "string",
            "description": "Update timestamp",
            "example": "1786947822889"
          },
          "expireTime": {
            "type": "string",
            "description": "Expiration time",
            "example": "1786953500000",
            "nullable": true
          }
        }
      }
    }
  },
  "x-readme": {}
}
```