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.moneyflow_hsgt()
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
All listed A-share stocks with basic info
client.stock_list()
Industries
Shenwan 3-level classification, 31 L1 industries
client.industry_list()
Adj Factor
Forward/backward price adjustment factor
client.adj_factor()
Technical Factors
MACD, KDJ, RSI, BOLL, CCI + adjusted prices
client.technical_factors()
Limit List
Daily limit-up/limit-down stocks since 2020
client.limit_list()
Income Statement
Revenue, costs, net income by quarter
client.income()
Balance Sheet
Assets, liabilities, equity by quarter
client.balance_sheet()
Cash Flow
Operating/investing/financing cash flows
client.cash_flow()
Earnings Forecast
Profit warnings and guidance
client.forecast()
Earnings Express
Flash reports before formal filings
client.express()
Dividend
Cash & stock dividend distribution
client.dividend()
Index Weight
CSI 300, SSE 50 constituent weights
client.index_weight()
Trade Calendar
SSE/SZSE trading days & holidays
client.trade_calendar()
Compatible with