HK Stock Market Data API

Covering all HKEX Main Board and GEM stocks. Real-time streaming for Hang Seng Index, blue chips & China concept stocks.

Market Coverage

Exchange / Category Symbols Data Capabilities Frequency
HK Stocks (HKEX) 3,299
  • Quotes
  • Candlesticks
  • Intraday
  • Order book
  • Trades

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.

Key Hong Kong market-data capabilities

Monitor the Pre-opening Session and continuous trading through standard quote, order-book and trade fields.

01

Real-time quote snapshots

Query last price, previous close, OHLC, volume and change using the unified .HK symbol convention.

REST · ticker
02

Ten-level order book

REST and WebSocket depth return ten bid and ten ask levels with price and size.

REST + WS · depth
03

Time-and-sales

Query recent trades or stream executions with price, size, direction and event time.

REST + WS · trades / trade
04

Pre-opening Session monitoring

From 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:30

Code Examples

Quick Start

# 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

Choosing a Hong Kong stock data API

Distinguish independent data APIs, brokerage ecosystems and exchange data licensing, then decide whether you need trading or cross-market research.

Provider Live data / DepthTrading / ResearchAccess / Cost modelBest 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.

Use Cases

Stock Connect Arbitrage

Real-time data for Shanghai-HK and Shenzhen-HK Stock Connect securities. Calculate AH premium spreads and capture arbitrage opportunities.

China Concept Stock Cross-market Monitoring

Track price spreads between HK-listed China concept stocks and their US ADR counterparts in real time.

Hang Seng Derivatives Pricing

Real-time Hang Seng Index data powering options/futures pricing models and Greeks calculations.

Choose Your Plan

All paid plans support monthly / quarterly / semi-annual / annual billing. Prices below are annual (20% off)

🔥 Save 20% Annually

Free

Free 7-Day Trial

 

  • Selected symbols*
  • 5 concurrent subscriptions
  • Real-time quotes
  • Real-time K-line
  • 1 WebSocket connection
  • 30 req/min API calls
  • Email support
Start Free
-20%

Starter

$99/mo
$79 /mo

Billed annually $950

  • All symbols
  • 50 full-market subscriptions
  • Real-time quotes
  • Real-time K-line
  • Real-time order book
  • Real-time trades
  • 1 year historical data
  • 1 WebSocket connection
  • 60 req/min API calls
  • Basic financial data
  • Email support
Subscribe Now
-20%
Most Popular

Professional

$299/mo
$239 /mo

Billed annually $2870

  • All symbols
  • 300 full-market subscriptions
  • Real-time quotes
  • Real-time K-line
  • Real-time order book
  • Real-time trades
  • 3 years historical data
  • 3 WebSocket connections
  • 600 req/min API calls
  • Professional financial data
  • News data
  • Telegram support
Subscribe Now
-20%

All HK-Shares

$499/mo
$399 /mo

Billed annually $4790

  • All symbols
  • Full-market queries and subscriptions
  • Additional 1000 full-market subscriptions
  • Real-time quotes
  • Real-time K-line
  • Real-time order book
  • Real-time trades
  • 5 years historical data
  • 5 WebSocket connections
  • 1200 req/min API calls
  • Professional financial data
  • News data
  • Telegram support
Subscribe Now
-20%

Enterprise

$899/mo
$719 /mo

Billed annually $8630

  • All symbols
  • Full-market queries and subscriptions
  • Additional 5000 full-market subscriptions
  • Real-time quotes
  • Real-time K-line
  • Real-time order book
  • Real-time trades
  • 10 years historical data
  • 10 WebSocket connections
  • 1800 req/min API calls
  • Professional financial data
  • News data
  • Telegram support
Subscribe Now

FAQ

What HK stocks does TickDB cover?
3,299 symbols across HKEX Main Board and GEM, including blue chips, China concept stocks, and ETFs.
Does HK stock data include event timestamps?
Yes. WebSocket ticker, depth and trade messages include 13-digit millisecond event timestamps. End-to-end latency varies by upstream data and client network.
Does TickDB support real-time Hang Seng Index data?
Yes. Hang Seng Index, Hang Seng Tech Index, and other major indices are available via real-time WebSocket subscription.
How does TickDB compare to Futu OpenAPI?
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.
Does the free plan include HK stock data?
Yes. The free plan includes real-time data for select HK blue-chip stocks with subscription limits. Upgrade to unlock all HK symbols.

Start Streaming Real-time Market Data

Sign up for a free API Key. WebSocket real-time streaming. Get started in minutes.