A-Share Data API — The data foundation for Agent quant
No signup. Just call it.
102 endpoints covering quotes, full profile, order book, financials, money flow, top-trader boards, sectors, macro and convertible bonds — plus a quant factor library (87 factors) / quant strategies (29) / quant backtest / quant playbooks (25). No application, no scraping, no data-source maintenance.
curl -H "Authorization: Bearer YOUR_KEY" \
"https://api.ashareapi.com/v1/quote?code=sh600667"
# 快速测试:https://api.ashareapi.com/v1/quote?code=sh600667&key=YOUR_KEY
# → {"ok":true,"elapsed_ms":862,"data":[{"date":"2026-09-16","last":"19.72", ...}]}CSI 300 over the last 120 trading days (decorative, data as of 2026-09-16)No signup needed
The free endpoints need no key at all — just call the URL. For the full set, get a key: no signup, no application, no review queue.
Works with your AI Agent
Drop three lines into Claude Code, Codex or any MCP client. Then just ask "how is 600667 doing today" and the agent fetches it. If you cannot get it working, we will get it working.
70 sources in one pool
You are not depending on a single upstream. If one is unavailable, the next one is used automatically — 100% success rate in our tests. Your code does not have to handle it.
Data coverage
102 endpoints by category. Full parameters and examples in theendpoint reference. Daily objective summaries (pre-market / midday / post-close) live in thedaily A-share report.
- Real-time quote
- Full profile
- Order book
- Up/down distribution
- Daily / weekly / monthly / quarterly / yearly
- Minute bars m1–m120
- Full 10-year history
- Adjustment: forward / back / raw
- Intraday (today / last 5 days)
- Three statements
- Technical indicators (MA / MACD / KDJ / RSI / BOLL)
- Shareholder research
- Dividends & splits
- Event tags
- Company profile
- Main capital flow
- Margin trading
- Block trades
- Chip distribution
- Institutions
- Hot money
- Active seats
- Brokerage detail
- Industry / concept moves
- Sector valuation percentile
- GDP / CPI / PMI
- Treasury yields
- LPR / MLF
- Factor expressions
- 87 factors
- 22 presets
- Label screening
- Single-stock / portfolio backtest
- Batch backtest (many stocks × many strategies)
- Costs included: commission / stamp duty / slippage / price limits
- 29 built-in strategies
- 87-factor library
- 25 playbooks
- Historical factor cross-sections
- Conversion terms
- Double-low ranking
- Redemption alerts
- ETF data
- IPO calendar
- Research digest
- Stock search
- Usage & quota
For developers: two lines to a DataFrame
Official Python / Node.js SDKs — no URL building, no retry handling, no response parsing. Free endpoints work right after install.
pip install ashareapinpm install ashareapifrom ashareapi import AShareAPI
cli = AShareAPI() # free endpoints need no key
df = cli.quote("sh600667") # quote → pandas DataFrame
print(df[["date", "last", "turnover"]])import { AShareAPI } from "ashareapi";
const cli = new AShareAPI(); // free endpoints need no key
const rows = await cli.quote("sh600667"); // real-time quote
console.log(rows[0]); // array of objects, no DataFramequoteklinehotmarket_overviewchangedistwikiPricing
Buyout per call, or monthly unlimited.Full comparison
70 sources back each other up. If one is unavailable, the next takes over. Publicly verifiable.