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
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-time | WebSocket | Depth | Trading | Access Barrier | Price |
|---|---|---|---|---|---|---|
| Futu OpenAPI Official API from Futu Securities, leading HK stock data | โ Real-time tick-by-tick | โ Proprietary TCP protocol (WebSocket equivalent) | โ Supported | โ Supports order execution | Requires Futu brokerage account + market data subscription | API 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 immediately | Free 25/day; from $49.99/mo |
| TickDB Unified multi-market API | โ Sub-100ms | โ Standard WebSocket | โ L2 (paid) | โ Data service only | Sign up and use immediately, no brokerage account needed | Free 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)
Free
- Selected symbols*
- 5 concurrent subscriptions
- Real-time quotes
- Real-time K-line
- 1 WebSocket connection
- 30 req/min API calls
- Email support
Starter
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
Professional
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
Enterprise
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
FAQ
What HK stocks does TickDB cover?
What is the latency for HK stock data?
Does TickDB support real-time Hang Seng Index data?
How does TickDB compare to Futu OpenAPI?
Does the free plan include HK stock data?
Explore Other Markets
Start Streaming Real-time Market Data
Sign up for a free API Key. WebSocket real-time streaming. Get started in minutes.