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 Types Frequency
HKEX Main Board ~3,500+ Tick / Trade / Depth Real-time
HKEX GEM (Growth Enterprise Market) ~800+ Tick / Trade Real-time

Technical Specs

Avg Latency
< 100ms
Protocol
WebSocket / REST
Data Types
Tick, Trade, Depth (L2)
Historical
Up to 10Y K-line
Push Freq
Tick-by-tick / 500ms
Uptime
99.9% SLA

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

Comparison

Comparison based on publicly available documentation as of April 2026. Please refer to each provider for the latest information.

Provider Real-timeWebSocketDepthTradingAccess BarrierPrice
Futu OpenAPI Official API from Futu Securities, leading HK stock data โœ… Real-time tick-by-tickโœ… Proprietary TCP protocol (WebSocket equivalent)โœ… Supportedโœ… Supports order executionRequires Futu brokerage account + market data subscriptionAPI free; market data card sold separately, subscription limits apply
Alpha Vantage General-purpose financial data API โŒ No real-time HK stock dataโŒโŒโŒSign up and use immediatelyFree 25/day; from $49.99/mo
TickDB Unified multi-market API โœ… Sub-100msโœ… Standard WebSocketโœ… L2 (paid)โŒ Data service onlySign up and use immediately, no brokerage account neededFree tier; paid unlocks all

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 $948

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

Professional

$299/mo
$239 /mo

Billed annually $2868

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

Enterprise

$899/mo
$719 /mo

Billed annually $8628

  • All symbols
  • 5000+ concurrent subscriptions
  • Real-time quotes
  • Real-time K-line
  • Real-time order book
  • Real-time trades
  • Night session data
  • 10 years historical data
  • 10 WebSocket connections
  • 1800+ req/min API calls
  • Telegram support
Subscribe Now

FAQ

What HK stocks does TickDB cover?
Over 4,300 symbols across HKEX Main Board and GEM, including blue chips, China concept stocks, and ETFs.
What is the latency for HK stock data?
WebSocket push latency is typically within 80-100ms.
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?
Futu OpenAPI is a broker-grade solution offering integrated market data + trading with excellent HK stock data quality and paper trading support. However, it requires a brokerage account, market data card purchase, and has subscription limits. TickDB is a pure data service โ€” no brokerage account needed โ€” covering US, A-shares, forex, and crypto in addition to HK stocks. Ideal for developers who only need market data.
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.