China A-Share Stock Data API
Covering all A-share stocks on SSE and SZSE. Real-time streaming for SSE Composite, SZSE Component & ChiNext indices.
Market Coverage
| Exchange / Category | Symbols | Data Types | Frequency |
|---|---|---|---|
| SSE (Shanghai Stock Exchange) | ~2,300+ | Tick / Trade / Depth | Real-time |
| SZSE (Shenzhen Stock Exchange) | ~3,700+ | Tick / Trade / Depth | Real-time |
| ChiNext Board | Included in SZSE | 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': ['600519.SH', '000858.SZ', '300750.SZ']
}
}))
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 | Data Scope | Multi-market | Price |
|---|---|---|---|---|---|---|
| Tushare Pro Most comprehensive A-share data community platform | โ ๏ธ Primarily historical/post-market data; limited intraday real-time | โ REST only | โ | โ Quotes + financials + macro + funds โ extremely rich dimensions | โ ๏ธ Mainly A-shares/HK stocks | Credit-based (free credits on signup; advanced features require donation credits) |
| AKShare Open-source and free, active community | โ ๏ธ Scraper-aggregated, near real-time but no SLA guarantee | โ HTTP scraping | โ | โ 1,000+ endpoints covering stocks/funds/futures/macro | โ ๏ธ Primarily A-shares, some global data | Completely free (MIT open-source) |
| TickDB Focused on real-time market data streaming | โ Sub-100ms | โ | โ L2 10-level (paid) | โ ๏ธ Market data focused; no financials/macro yet | โ A-shares/HK/US/Forex/Crypto | Free tier; paid unlocks all |
Use Cases
Call Auction Monitoring
Track the opening price formation process during the 9:15-9:25 call auction session to support board-hitting and auction strategies.
Full-market Factor Scanning
Subscribe to 6,000+ symbols concurrently, computing momentum, volatility, and other factors in real time for quant stock selection.
Margin Trading & Northbound Capital Linkage
Combine real-time market data with capital flow data to monitor institutional money movements.
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 is TickDB's A-share coverage?
Is A-share data real-time?
How does TickDB compare to Tushare?
Is Level 2 order book data supported?
Can overseas users access A-share 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.