Real-time quote snapshots
Query last price, previous close, OHLC, volume and change using the unified .HK symbol convention.
REST · tickerTickDB provides Hong Kong stock quotes, ten-level order books, trades and historical bars via REST and WebSocket, with quote and depth updates during opening auctions.
| Exchange / Category | Symbols | Data Capabilities | Frequency |
|---|---|---|---|
| HK Stocks (HKEX) | 3,299 |
Also supports instrument information, adjusted candles and adjustment factors; metrics, capital flow, company financials and events depend on instrument and permissions. | Updates during trading sessions |
Candlesticks are queried via REST; live subscriptions use supported channels. Endpoints, fields and historical coverage depend on the instrument, plan permissions and available data. Instrument counts do not imply full capability coverage for every instrument.
Monitor the Pre-opening Session and continuous trading through standard quote, order-book and trade fields.
Query last price, previous close, OHLC, volume and change using the unified .HK symbol convention.
REST · tickerREST and WebSocket depth return ten bid and ten ask levels with price and size.
REST + WS · depthQuery recent trades or stream executions with price, size, direction and event time.
REST + WS · trades / tradeFrom 09:00, auction activity is available through standard ticker and depth fields; after the 09:20 random match, trades, volume and book changes align. Dedicated IEP, IEV and imbalance fields are not currently provided.
Pre-opening Session · POS 09:00–09:30Filter the product catalog with market=HK and type=stock, then use the returned symbol to query stock prices. The documented example is 700.HK; do not assume all leading-zero variants are interchangeable.
Hong Kong depth supports up to ten levels per side. Actual depth depends on the instrument and available quotes, and can be lower outside trading sessions or with limited liquidity. Depth requires a paid entitlement.
Bars support 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w and 1M: lowercase m means minutes, uppercase M means months. start_time/end_time use milliseconds; the default is 100 bars, capped at 1,000. The last bar may still be forming. Historical access depends on entitlements and availability.
A-shares, Hong Kong and US stocks support adjust=none (default), forward and backward. Record the query time and adjustment mode for archives or backtests; adjusted historical prices can change with corporate actions or data updates.
Use documented symbols as examples; confirm current availability and account permissions in the catalog. Replace YOUR_API_KEY locally; never publish a real key in browser code.
curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/symbols/available?market=HK&type=stock&limit=100&offset=0" curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/market/ticker?symbols=700.HK&type=stock" curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/market/kline?symbol=700.HK&type=stock&interval=1d&limit=100&adjust=none" Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.
# pip install websocket-client
import websocket
import json
api_key = 'your_api_key_here'
ws_url = f'wss://api.tickdb.ai/v1/realtime?api_key={api_key}'
def on_open(ws):
ws.send(json.dumps({
'cmd': 'subscribe',
'data': {
'channel': 'ticker',
'symbols': ['700.HK', '9988.HK', '5.HK']
}
}))
def on_message(ws, message):
data = json.loads(message)
print('Received:', data)
ws = websocket.WebSocketApp(ws_url, on_open=on_open, on_message=on_message)
ws.run_forever() Full documentation available at API Documentation
Distinguish independent data APIs, brokerage ecosystems and exchange data licensing, then decide whether you need trading or cross-market research.
| Provider | Live data / Depth | Trading / Research | Access / Cost model | Best fit |
|---|---|---|---|---|
| TickDB Independent multi-market data API | WebSocket quotes, depth and trades; levels and fields vary by instrument and entitlement. | No order execution. Combine HK data with financials, valuation, industries, news, events and other markets. | API key, no trading account; REST / WebSocket / Skill / MCP / CLI. Free trial; plan-based access. | HK/US monitoring, market applications, research platforms and AI agents. |
| Futu OpenAPI Brokerage data and trading API | Subscriptions, trades and order books depend on quote rights. | HK trading requires a trading account and permissions. | Futubull + OpenD; no account opening needed for login. Quote cards and quotas depend on rights. | Data-and-trading applications for brokerage users. |
| HKEX Data Services Exchange data and licensing | Real-time HK exchange data products, subject to licensing. | Market and reference data; data services do not execute orders. | Evaluate licensing, connectivity and commercial fees. | Institutions, data vendors and licensing-led projects. |
Real-time data for Shanghai-HK and Shenzhen-HK Stock Connect securities. Calculate AH premium spreads and capture arbitrage opportunities.
Track price spreads between HK-listed China concept stocks and their US ADR counterparts in real time.
Real-time Hang Seng Index data powering options/futures pricing models and Greeks calculations.
All paid plans support monthly / quarterly / semi-annual / annual billing. Prices below are annual (20% off)
Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.
Billed annually $950
Billed annually $2870
Billed annually $4790
Billed annually $8630
For ordinary Hong Kong shares on a full trading day, Hong Kong time (UTC+8): pre-opening is 09:00–09:30, continuous trading is 09:30–12:00 and 13:00–16:00, with a lunch break. Eligible securities then enter the closing auction, ending randomly between 16:08 and 16:10. Half-days have no afternoon session; the closing auction ends randomly at 12:08–12:10. Hong Kong does not observe daylight saving time. Holidays, special securities and exceptional arrangements follow HKEX notices.
Official trading rules
3,299 symbols across HKEX Main Board and GEM, including blue chips, China concept stocks, and ETFs.
Yes. WebSocket ticker, depth and trade messages include 13-digit millisecond event timestamps. End-to-end latency varies by upstream data and client network.
Yes. Hang Seng Index, Hang Seng Tech Index, and other major indices are available via real-time WebSocket subscription.
Consider Futu for brokerage workflows and HKEX for exchange data products and licensing. TickDB suits independent market applications and Hong Kong, US and A-share research.
Filter the product catalog with market=HK and type=stock, then use the returned symbol to query stock prices. The documented example is 700.HK; do not assume all leading-zero variants are interchangeable.
Hong Kong depth supports up to ten levels per side. Actual depth depends on the instrument and available quotes, and can be lower outside trading sessions or with limited liquidity. Depth requires a paid entitlement.
Bars support 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w and 1M: lowercase m means minutes, uppercase M means months. start_time/end_time use milliseconds; the default is 100 bars, capped at 1,000. The last bar may still be forming. Historical access depends on entitlements and availability.
A-shares, Hong Kong and US stocks support adjust=none (default), forward and backward. Record the query time and adjustment mode for archives or backtests; adjusted historical prices can change with corporate actions or data updates.
Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.
Sign up for a free API Key. WebSocket real-time streaming. Get started in minutes.