50M+ data points and counting

Chinese A-Share Data for Global Developers

Institutional-grade market data for 5,000+ stocks across Shanghai & Shenzhen. REST API, Python SDK, and MCP — built for quants, analysts, and fintech teams.

Live from AShareHub API 2026-04-03
SSE Composite
3880.10
-1.00%
CSI 300
4440.79
-0.85%
ChiNext
3149.60
-0.73%
5,000+
A-Share Stocks
29
REST Endpoints
10+
Years of History
50+
Financial Indicators
Daily
Updated
quickstart.py
# Install the Python SDK
pip install asharehub
# Fetch daily prices
from asharehub import AShareHub
client = AShareHub(api_key="ash_your_key_here")
df = client.market_daily(ts_code="000001.SZ", start_date="2024-01-01")

Institutional-Grade Data Coverage

One API for prices, valuations, capital flows, financials, and market microstructure across Shanghai and Shenzhen exchanges.

Prices & Valuations

Daily OHLCV, PE/PB ratios, turnover, and market cap for every A-share — back to 2010.

/market/daily /market/fundamentals

Capital Flows

Northbound via Stock Connect, per-stock money flow by order size, and margin trading detail.

/flows/northbound /flows/moneyflow /margin

50+ Financial Indicators

ROE, EPS, margins, debt ratios, and comprehensive income metrics — quarterly per company.

/financials/indicators
Indices
SSE, CSI 300, ChiNext
Chip Distribution
Cost percentiles
Block Trades
Off-exchange deals
Dragon & Tiger
Institutional disclosures
Shareholders
Count & insider trades
Concept Sectors
AI, EV, semiconductors
FX Rates
USD/CNH & more
Northbound Holdings
Foreign investor detail
Stock List
5,000+ A-shares
Industry Class
Shenwan 3-level
Financial Statements
Income, balance, cash flow
Technical Indicators
MACD, KDJ, RSI, BOLL
Limit Up/Down
Daily limit-hit stocks
Dividends
Cash & stock distribution
Earnings Forecast
Profit warnings & express

Developer Tools

REST API, Python SDK, or connect directly to Claude and other LLMs via MCP.

Python SDK

One-line install, pandas-native. Returns DataFrames out of the box.

pip install asharehub

Claude Code Skill

Type <code class="text-zinc-400 bg-zinc-800/60 px-1.5 py-0.5 rounded text-[11px]">/asharehub</code> and query A-share data in natural language.

> /asharehub CSI 300 trend

MCP Server

Connect to Claude, Cursor, and any MCP client. 29 tools, natural language.

uvx asharehub-mcp

Start building with A-share data

Free tier includes 100 API calls per day. No credit card required.