Introduction
HK Stocks Trading — trade Hong Kong-listed stocks and ETFs with crypto.
The HK Stocks Trading API lets you trade HKEX-listed securities programmatically through the SAPI
endpoint family. All endpoints live under the /sapi/v1/equity-hk/* prefix, with no aliases.
What's Included
| Group | Endpoints |
|---|---|
| Market Data | Exchange Info, Tokenized Assets, Latest Quote, FX Rate, Depth Snapshot (L2, whitelist) |
| Trade | Place Order, Order Preview, Max Buy Quantity, Cancel Order, Cancel All Orders, Current Open Orders, Order History, Order Detail, Trade History |
| Tokenized | Mint, Redeem, Convert Status, Convert History |
| Account | Sign Disclaimer (Unsettled balance: see General Info) |
| User Data Streams | Listen Key, Order Report |
| Market Streams | Issue Market Stream Token, then market data over WebSocket |
Before You Start: Hong Kong Stocks Are Not a Reskin of US Stocks
If you have already integrated the US stocks SAPI, the seven differences below will break code written on US-stock intuition. Read them first.
| Dimension | US stocks | Hong Kong stocks |
|---|---|---|
| Market-buy measurement | By amount (notional) | By quantity. There is no notional parameter; all four side × orderType combinations are placed by quantity |
| Pricing and payment | USD (USDC 1:1) | Orders and fills are in HKD; payment and freezing use USDC; the two are converted by fxRate |
| Settlement cycle | T+1 | T+2 |
| Trading session | RTH / EXTENDED / 24H | HK_CTS / HK_AUC_CTS (two values only) |
| Minimum trading unit | stepSize (fractional shares) | lotSize (shares per board lot); buys must be whole lots |
| Odd lots | N/A | Buying is forbidden; selling is allowed, but whole lots and odd lots are split into two orders |
| Market orders | Natively supported | HKEX has no native market order; the broker simulates it with limit-order chasing and cancels after 180 seconds. Not open yet — placing one returns 670472 |
symbol is always the five-digit zero-padded HKEX numeric ticker (for example 00700, 03968).
Internal asset codes are not exposed.
First Integration: Three Things
- Call
/account/disclaimerto sign first — it triggers opening of the Hong Kong stock account on the broker side and is a prerequisite for placing orders. - Market orders are not open yet. For now use limit orders only (
LIMIT/STOP_LOSS_LIMIT/TAKE_PROFIT_LIMIT). - Call
/order/previewbefore placing an order and userequiredPaymentQuoteto confirm the amount that will actually be frozen.
Do not confuse the two credentials:
listenKeysubscribes to order push,wss-tokensubscribes to market data streams. They do not replace each other.
See the Integration Checklist for the full list of pitfalls.
Was this page helpful?
Last modified on