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

# Query Open Orders List

Query all current unfilled orders, with optional `symbol` parameter to filter by trading pair (authentication required). Note: If no specific account is specified in the header, defaults to querying open order data across all accounts.

# 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/active-orders": {
      "get": {
        "tags": [
          "Spot - Order Module"
        ],
        "summary": "Query Open Orders List",
        "description": "Query all current unfilled orders, with optional `symbol` parameter to filter by trading pair (authentication required). Note: If no specific account is specified in the header, defaults to querying open order data across all accounts.",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "description": "Trading pair",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orderId",
            "in": "query",
            "description": "Order ID; when provided, queries solely by symbol and orderId",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "isPre",
            "in": "query",
            "description": "Forward/backward pagination query; default false represents backward pagination",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "lastIndex",
            "in": "query",
            "description": "Starting index for query; forward pagination requires min orderId on current page, backward pagination requires max orderId on current page",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Number of records to query; default 100, max 500, min 1",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "name": "startTime",
            "in": "query",
            "description": "Start time",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "endTime",
            "in": "query",
            "description": "End time",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Query successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SpotQueryOrder"
                  }
                },
                "example": [
                  {
                    "orderId": "2269154246656405505",
                    "clientOrderId": "test-spot-003",
                    "accountUuid": "017ef1b6-22ae-44ba-b3e0-4116068c5e29",
                    "symbol": "USDGOUSDT",
                    "baseAsset": "USDGO",
                    "quoteAsset": "USDT",
                    "orderType": "LIMIT",
                    "side": "BUY",
                    "price": "0.98",
                    "quantity": "1",
                    "amount": "0.98",
                    "executedQty": "0",
                    "executedAmount": "0",
                    "timeInForce": "GTC",
                    "status": "NEW",
                    "cumTransactFee": "0",
                    "feeAsset": null,
                    "lastPriceAtPlace": "1.001",
                    "makerFeeRate": "0",
                    "takerFeeRate": "0",
                    "rejectReason": null,
                    "cancelQty": "0",
                    "cancelAmount": "",
                    "orderTime": "1786952250905",
                    "updateTime": "1785240265651",
                    "expireTime": null
                  },
                  {
                    "orderId": "2269154246656405504",
                    "clientOrderId": "test-spot-002",
                    "accountUuid": "017ef1b6-22ae-44ba-b3e0-4116068c5e29",
                    "symbol": "USDGOUSDT",
                    "baseAsset": "USDGO",
                    "quoteAsset": "USDT",
                    "orderType": "LIMIT",
                    "side": "BUY",
                    "price": "0.99",
                    "quantity": "1",
                    "amount": "0.99",
                    "executedQty": "0",
                    "executedAmount": "0",
                    "timeInForce": "GTD",
                    "status": "NEW",
                    "cumTransactFee": "0",
                    "feeAsset": null,
                    "lastPriceAtPlace": "1.001",
                    "makerFeeRate": "0",
                    "takerFeeRate": "0",
                    "rejectReason": null,
                    "cancelQty": "0",
                    "cancelAmount": "",
                    "orderTime": "1786952250905",
                    "updateTime": "1786952250905",
                    "expireTime": "1786953500000"
                  }
                ]
              }
            }
          }
        }
      }
    }
  },
  "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": {}
}
```