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/.

Terminal
curl -fsSL https://asharehub.com/skill/install | bash

2 Set Your API Key

Sign up free to get an API key, then set it as an environment variable.

Terminal
export ASHAREHUB_API_KEY="ash_your_key_here"

3 Start Using

Type /asharehub in Claude Code, then ask your question.

Example prompts
> /asharehub Show me Ping An Bank's daily prices for the last month
> /asharehub What's the PE ratio trend for Kweichow Moutai (600519.SH)?
> /asharehub Compare northbound flows this week vs last week
> /asharehub Show chip distribution for 000001.SZ — are most holders in profit?

Available Data Endpoints

Market Data

Daily Prices

OHLCV prices, returns, volume since 2020

client.market_daily()
Valuations

Fundamentals

PE, PB, turnover rates, market cap since 2010

client.fundamentals()
Capital Flows

Northbound Flows

Stock Connect daily net flows since 2014

client.northbound_flows()
Capital Flows

Money Flow

Per-stock money flow by order size since 2020

client.moneyflow()
Capital Flows

Northbound Holdings

Foreign investor holdings per stock since 2020

client.northbound_holdings()
Market Data

Margin Trading

Margin buy/short sell balances since 2020

client.margin()
Market Data

Block Trade

Off-exchange large deals with buyer/seller since 2010

client.block_trade()
Market Data

Dragon & Tiger List

Institutional buy/sell disclosure since 2024

client.top_list()
Market Data

Shareholders

Quarterly shareholder count since 2024

client.shareholders()
Market Data

Holder Trade

Major shareholder/exec trades since 2019

client.holder_trade()
Market Data

Concepts

AI, new energy, semiconductor sector indices

client.concepts()
Market Data

Concept Members

Constituent stocks of concept indices

client.concept_members()
Microstructure

Chip Distribution

Cost percentiles, winner rates since 2020

client.chip_distribution()
Indices

Index Daily

SSE Composite, CSI 300, ChiNext, SSE 50

client.index_daily()
FX

FX Rates

USD/CNH and currency pairs since 2012

client.fx_daily()
Financials

Financial Indicators

50+ quarterly metrics: ROE, EPS, margins

client.financial_indicators()
Reference

Stock List

5,491 A-share stocks with basic info

client.stock_list()
Reference

Industries

Shenwan 3-level classification, 31 L1 industries

client.industry_list()

Compatible with

Claude Code | Cursor | Windsurf | Any MCP client