AShareHub Skill for Claude Code
Query Chinese A-share market data directly in Claude Code, Cursor, or any MCP-compatible AI tool. Just install the skill and ask questions in natural language.
1 One-Command Install
Run this in your project directory. It downloads the skill files into .claude/skills/asharehub/.
2 Set Your API Key
Sign up free to get an API key, then set it as an environment variable.
3 Start Using
Type /asharehub in Claude Code, then ask your question.
Available Data Endpoints
Daily Prices
OHLCV prices, returns, volume since 2020
client.market_daily()
Fundamentals
PE, PB, turnover rates, market cap since 2010
client.fundamentals()
Northbound Flows
Stock Connect daily net flows since 2014
client.northbound_flows()
Money Flow
Per-stock money flow by order size since 2020
client.moneyflow()
Northbound Holdings
Foreign investor holdings per stock since 2020
client.northbound_holdings()
Margin Trading
Margin buy/short sell balances since 2020
client.margin()
Block Trade
Off-exchange large deals with buyer/seller since 2010
client.block_trade()
Dragon & Tiger List
Institutional buy/sell disclosure since 2024
client.top_list()
Shareholders
Quarterly shareholder count since 2024
client.shareholders()
Holder Trade
Major shareholder/exec trades since 2019
client.holder_trade()
Concepts
AI, new energy, semiconductor sector indices
client.concepts()
Concept Members
Constituent stocks of concept indices
client.concept_members()
Chip Distribution
Cost percentiles, winner rates since 2020
client.chip_distribution()
Index Daily
SSE Composite, CSI 300, ChiNext, SSE 50
client.index_daily()
FX Rates
USD/CNH and currency pairs since 2012
client.fx_daily()
Financial Indicators
50+ quarterly metrics: ROE, EPS, margins
client.financial_indicators()
Stock List
5,491 A-share stocks with basic info
client.stock_list()
Industries
Shenwan 3-level classification, 31 L1 industries
client.industry_list()
Compatible with