Common Definition
This page lists every enum value accepted or returned by HK Stocks Trading endpoints.
Global rule: all enum string values are UPPERCASE on both request and response.
side
| Value | Description |
|---|---|
BUY | Buy side |
SELL | Sell side |
orderType
Used on /order/place, /order/preview, /order/max-quantity, /order/history filter (request),
and on every order / trade row (response).
| Value | Description |
|---|---|
LIMIT | Limit order |
STOP_LOSS_LIMIT | Stop-loss limit order |
TAKE_PROFIT_LIMIT | Take-profit limit order |
MARKET | Market order. Not open yet — rejected (670472) |
timeInForce
| Value | Description |
|---|---|
DAY | Expires if unfilled at the close of the day (default) |
GTC | Good-til-cancelled. Whole-lot limit orders only; odd-lot orders with GTC get 670463 |
tradingSession / session
Used on /order/place as tradingSession (LIMIT only); returned on order rows as session.
| Value | 09:00–09:30 opening auction | From 09:30 continuous trading |
|---|---|---|
HK_AUC_CTS | Takes part; unfilled quantity rolls into continuous trading (default) | Takes part |
HK_CTS | Does not take part | Takes part, matching from 09:30 |
The closing auction (CAS) is not an option: unfilled quantity of both values flows into it at 16:00.
walletType
Used on /order/place (BUY side only). Defaults to CARD. SELL orders always settle to CARD.
| Value | Description |
|---|---|
CARD | Funding wallet (default) |
MAIN | Spot wallet |
orderStatus (filter)
Used on /order/history as a comma-separated multi-value filter.
| Value | Description |
|---|---|
FILLED | Fully filled |
PARTIALLY_FILLED | Partially filled |
CANCELED | Canceled |
EXPIRED | Expired |
REJECTED | Rejected |
status (order / trade response)
Returned on each order row, covering in-flight and terminal states. Always uppercase on REST; the order report push uses the same values in lowercase — see WebSocket Streams.
| Value | Description |
|---|---|
PENDING_NEW | Submitted, pending acknowledgement |
NEW | Accepted and working |
PARTIALLY_FILLED | Partially filled (derived: 0 < filled quantity < ordered quantity) |
PENDING_CANCEL | Cancel requested, not yet confirmed |
FILLED | Fully filled |
CANCELED | Canceled |
EXPIRED | Expired |
REJECTED | Rejected |
Note: The
statuson the Place Order response is an acknowledgement code (Saccepted /Pprocessing /Ffailed), and on the Cancel Order response it is an acknowledgement code too — neither is an order lifecycle status.
tradability (exchange info)
Returned on /market/exchangeInfo → symbols[].tradability.
| Value | Description |
|---|---|
BUY_SELL | Both buying and selling are allowed. |
BUY | Only buying is allowed. |
SELL | Only selling is allowed. |
NONE | No trading allowed. |
convertType (tokenized)
| Value | Description |
|---|---|
MINT | Mint tokenized asset from an underlying equity holding. |
REDEEM | Redeem tokenized asset back into the underlying equity. |
status (tokenized convert response)
Separate from the order lifecycle status: mint / redeem is an async convert flow with its own
three-state machine.
| Value | Description | Final |
|---|---|---|
P | Processing (accepted, async in flight). | No |
S | Success. | Yes |
F | Failed. | Yes |
ac (order report push)
Asset class on the shared orderReportV3 stream. Always filter by it.
| Market | ac value |
|---|---|
| US stocks | us_equity |
| US options | us_option |
| Hong Kong | hk_equity |