AShareHub API Documentation
AShareHub provides RESTful API access to Chinese A-Share market data, covering all listed A-shares on the Shanghai and Shenzhen exchanges. Our API delivers daily OHLCV prices, fundamental indicators, northbound capital flows, money flow by order size, chip distribution, margin trading, block trades, shareholder data, concept/theme sectors, FX rates, index data, industry classifications, and financial statements.
https://asharehub.com
Version: v2
Format: JSON
API Upgrade Notice
We've recently shipped a major upgrade to our v2 API — significantly improving
data quality, API stability and
data-fetching logic, with more comprehensive support for LLM-readable documentation.
The v1 API remains fully available. We recommend upgrading your SDK to 0.7.0 or later to try our latest endpoints.
Questions? Contact support@asharehub.com
Quick Start
Step 1: Create a free account at asharehub.com/console/register
Step 2: Generate your API key in the Dashboard
Step 3: Make your first request:
curl -H "X-API-Key: ash_your_key_here" \
"https://asharehub.com/v2/market/daily?symbol=000001.SZ"
pip install asharehub
from asharehub import AShareHub
client = AShareHub(api_key="ash_your_key_here")
df = client.market_daily(symbol="000001.SZ")
print(df)
Authentication
All data API endpoints require an API key passed via the X-API-Key header.
curl -H "X-API-Key: ash_your_key_here" https://asharehub.com/v2/market/daily
Rate Limits
Requests are limited per API key on a daily basis. When exceeded, the API returns 429 Too Many Requests.
| Plan | Price | Daily Limit |
|---|---|---|
| Free | $0 | 100 |
| Pro | $29/mo $49 limited | 10,000 |
| Business | $69/mo $99 limited | 50,000 |