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

Avg Latency
< 100ms
Protocol
WebSocket / REST
Data Types
Tick, Trade, Depth (L2)
Historical
Up to 10Y K-line
Push Freq
3s snapshot / Tick-by-tick
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': ['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-timeWebSocketDepthData ScopeMulti-marketPrice
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 stocksCredit-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 dataCompletely 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/CryptoFree 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)

๐Ÿ”ฅ 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 is TickDB's A-share coverage?
Over 6,000 A-share symbols across SSE and SZSE, including Main Board, ChiNext, and STAR Market.
Is A-share data real-time?
Yes. Real-time data is streamed via WebSocket with continuous updates during trading hours. Base snapshots are at 3-second intervals; paid plans support tick-by-tick streaming.
How does TickDB compare to Tushare?
Tushare is the most comprehensive A-share data community platform, covering quotes, financial statements, macro economics, and funds โ€” an essential tool for quant research and backtesting. TickDB focuses on real-time streaming with WebSocket tick-by-tick push and L2 order book data, better suited for low-latency trading and monitoring systems. The two complement each other well.
Is Level 2 order book data supported?
Yes. Paid plans include A-share Level 2 depth data with 10-level bid/ask order book.
Can overseas users access A-share data?
Yes. TickDB serves developers globally with English API documentation. Overseas users can connect to A-share real-time data directly.

Start Streaming Real-time Market Data

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