China Stocks

v0.2.1
io.github.pipeworx-io/china-stocks Checked 2 days ago Published 1 month ago

China A-shares MCP. Keyless.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ashares_limit_up

The Chinese A-share market's LIMIT-UP board (涨停板) for a trading day — how many stocks hit their daily price limit (+10%, or +20% for STAR/ChiNext) and the ranked list of those stocks. Answers 'how many A-shares hit limit up today', 'top limit-up stocks', 'which stocks 涨停'. Each stock includes code, name, price, change %, turnover (成交额), float market cap, turnover rate (换手率), consecutive-board count (连板数 lbc), first/last seal time, seal fund (封板资金), and industry (行业). Source: Eastmoney (keyless).

ParameterTypeDescription
datestringTrading day as YYYYMMDD or YYYY-MM-DD (default: most recent trading day).
limitnumberHow many stocks to return, 1–100 (default 30). The total count is always returned regardless.

ashares_limit_down

The Chinese A-share market's LIMIT-DOWN board (跌停板) for a trading day — how many stocks hit their daily DOWN price limit (-10%, or -20% for STAR/ChiNext) and the ranked list of those stocks. Answers 'how many A-shares hit limit down today', '跌停家数', 'which stocks 跌停', 'limit-down stock count for a China A-share trading day' — the counterpart to ashares_limit_up, together giving market-wide limit-up/limit-down breadth. Each stock includes code, name, price, change % (negative), turnover (成交额), float market cap, turnover rate (换手率), seal fund (封板资金), last…

ParameterTypeDescription
datestringTrading day as YYYYMMDD or YYYY-MM-DD (default: most recent trading day).
limitnumberHow many stocks to return, 1–100 (default 30). The total count is always returned regardless.

ashares_margin_financing

China A-share margin financing and securities lending balance (融资融券余额/两融余额) — the market-wide leverage gauge: aggregate financing balance (融资余额, money borrowed to buy stock), securities-lending balance (融券余额, shares borrowed to short), and their combined total (融资融券余额), for the Shanghai (SSE) and Shenzhen (SZSE) exchanges separately and combined, with day-over-day change. Answers '融资余额', '两融余额', '融资融券余额', 'margin financing balance', 'China A-share margin debt', 'how much margin debt is in the A-share market', 'margin…

ParameterTypeDescription
datestringTrading day as YYYY-MM-DD or YYYYMMDD (default: most recent day with published data). Margin data is T+1, so "today" usually has nothing yet.
symbolstringOptional 6-digit SZSE code (0/3/159-prefixed, e.g. "000001" 平安银行) for that stock's own margin balance instead of the market-wide aggregate. SSE codes (6xxxxx) are not supported here — no ver…

ashares_market_snapshot

Overall snapshot of the Chinese A-share market — the headline index levels (Shanghai Composite, Shenzhen Component, ChiNext, STAR 50, CSI 300) with change %, day range and turnover, plus market-wide breadth as a sentiment gauge: how many stocks hit limit-up (涨停) and limit-down (跌停) today. Answers 'how is the China A-share market doing', 'Shanghai Composite today', 'A-share market snapshot at close', 'how did Chinese stocks close', '涨跌停家数', 'limit-up limit-down counts today'. For the ranked pools use ashares_limit_up / ashares_limit_down; for market-wide margin financing lev…

ashares_quote

Real-time quote(s) for Chinese A-share stocks by 6-digit code (Shanghai 6xxxxx, Shenzhen 0xxxxx/3xxxxx, STAR 688xxx, ChiNext 30xxxx, Beijing 8xxxxx/4xxxxx). Returns name, current price, change and change %, open, previous close, day high/low, volume, turnover, and the quote timestamp. Accepts one code or a comma-separated list. Example: ashares_quote({ symbols: "600519,000858" }) for Kweichow Moutai and Wuliangye. Source: Sina (keyless).

ParameterTypeDescription
symbols *stringOne 6-digit code or a comma-separated list, e.g. "600519" or "600519,000001,300750". sh/sz/bj prefixes are accepted but optional.

ashares_turnover_ranking

Market-wide ranking of Chinese A-share stocks by turnover / 成交额排名, 成交额前30名, 成交量排名, or 涨跌幅排名 — the whole board (not specific codes), sorted server-side and returned as a ranked list. Answers 'A股成交额前30名', 'top 30 A-shares by turnover today', 'A股成交量排名', 'A-share market-wide ranking by amount/volume/change %', 'which A-shares traded the most today'. Each row has code, name, price, change %, volume (shares), turnover in CNY (成交额), turnover rate %, and industry (行业/板块, when resolvable). Omit `date` (or pass today) for th…

ParameterTypeDescription
boardstringWhich board to rank: hs_a = all Shanghai+Shenzhen A-shares (default, 沪深A股), sh_a = Shanghai only (沪市A股), sz_a = Shenzhen only (深市A股), cyb = ChiNext (创业板).
datestringA PAST trading day, YYYY-MM-DD or YYYYMMDD, for that day's ranking instead of today's live board. Only `sort:'changepercent'` is supported with a past date. Omit for the live board.
limitnumberHow many stocks to return, 1–100 (default 30).
orderstringdesc (default, highest first) or asc.
sortstringRank by turnover amount (成交额, default), change % (涨跌幅), or share volume (成交量). For a PAST `date`, only 'changepercent' is available — 'amount'/'volume' throw a clear error for hist…

ashares_capital_flow

Per-stock daily main-capital net inflow history (主力净流入 / 超大单+大单净流入, often called '超大单净流入' in retail trackers) for a Chinese A-share stock or ETF — one row per trading day with net inflow broken down by order size: 超大单 (super-large/institutional), 大单 (large), 中单 (medium), 小单 (small), plus 主力净流入 (main = 超大单+大单combined) in both CNY amount and as a % of that day's turnover. Answers '主力净流入历史', '超大单净流入', '000768最近20个交易日的主力资金流向', 'main capital net inflow history for a Chin…

ParameterTypeDescription
code *string6-digit A-share or ETF code, e.g. "000768" (中航西飞) or "515050". sh/sz/bj prefixes accepted but optional.
daysnumberHow many of the most recent trading days to return, 1–200 (default 20).

ashares_billboard

The Chinese A-share market's daily 龙虎榜 (dragon-tiger list / billboard) for a trading day — stocks flagged for unusual price/turnover deviation, with the top seats' buy/sell/net amounts, plus (when present that day) institution-seat (机构专用) net-buy detail and that day's most-active brokerage branches (营业部) market-wide as a 'top brokerages' signal. Answers '龙虎榜', 'dragon tiger list for a date', 'which stocks were on the billboard on 2026-09-24', '机构净买入', 'institution seat net buys', 'top active brokerage seats'. Each listed stock has the reason it was flagged…

ParameterTypeDescription
datestringTrading day as YYYY-MM-DD or YYYYMMDD (default: most recent trading day).
limitnumberHow many billboard-listed stocks to return, 1–100 (default 50).

ashares_etf_shares

Disclosed fund-share-count (基金份额) and net-asset history for a Chinese-listed ETF — period-end total shares outstanding (期末总份额), the period's subscriptions/redemptions (期间申购/赎回), and period-end net assets (期末净资产), in shares and CNY. Answers '基金份额变动', 'ETF shares outstanding history', '515050规模变动', 'how many shares outstanding does this ETF have over time'. IMPORTANT: this is NOT a daily series — Chinese ETFs publicly disclose 份额 only at quarter-end plus occasional ad-hoc material-change dates (confirmed live for 515050/561980/5…

ParameterTypeDescription
code *string6-digit ETF code, e.g. "515050", "561980", "588170", "588200", or "512000".
fromstringEarliest disclosure date to include, YYYY-MM-DD or YYYYMMDD (inclusive). Default: no lower bound (full history, newest first, capped).
tostringLatest disclosure date to include, YYYY-MM-DD or YYYYMMDD (inclusive). Default: today (no upper bound in practice).

ashares_earnings_forecast

Company-issued earnings guidance (业绩预告) for a Chinese A-share stock — the company's own forecast announcements with predicted profit range (lower/upper bounds in CNY), year-over-year change %, forecast type (略增/预增/扭亏 etc.), and the company's stated reason. Answers '业绩预测', '业绩预告', 'earnings forecast/guidance for a China A-share company like 华工科技 000988'. Most recent reports first. Source: Eastmoney datacenter (keyless).

ParameterTypeDescription
symbol *string6-digit A-share code, e.g. "000988" (华工科技) or "600519" (贵州茅台).
limitnumberHow many forecast announcements to return, 1–20 (default 4, newest first).

ashares_analyst_consensus

Analyst consensus estimates (盈利预测) for a Chinese A-share stock — per forecast year: consensus EPS, P/E at current price, net profit attributable to parent (归母净利润), and total operating revenue, in CNY. Answers "analyst estimates / 盈利预测 / forecast EPS for a China A-share like 000988". Source: Eastmoney datacenter (keyless).

ParameterTypeDescription
symbol *string6-digit A-share code, e.g. "000988" or "300750" (宁德时代).

ashares_daily_history

Daily OHLCV history (历史日线) for one or more Chinese A-share stocks over a date range — open, high, low, close, volume, and day-over-day change % per trading day. Answers '300418在2026-08-31到2026-09-03的收盘价和涨跌幅', 'daily closes for 600519 last week', 'history for 000858 and 300750 this month', '涨跌幅历史', '历史成交量'. Up to 20 comma-separated 6-digit codes. change_pct is computed from consecutive closes within the returned range (the first row has no prior close in range, so it is null); turnover amount (成交额) is not exposed by this daily-bar source,…

ParameterTypeDescription
codes *stringOne 6-digit code or a comma-separated list, up to 20, e.g. "300418" or "300418,300364,002131". sh/sz/bj prefixes accepted but optional.
start *stringStart date, YYYY-MM-DD or YYYYMMDD (inclusive).
adjuststringPrice adjustment for splits/dividends: qfq = forward-adjusted (default, prices comparable to today), hfq = backward-adjusted, none = raw unadjusted prices.
endstringEnd date, YYYY-MM-DD or YYYYMMDD (inclusive). Default: today.

ashares_intraday_bars

Intraday minute bars (分钟线/分时/分钟K线) for Chinese A-share stocks/ETFs on a given trading日/交易日, with cumulative volume and turnover (累计成交量/累计成交额) computed up to a requested time of day (截至<time>, e.g. 截至11:05) — answers '515050在2026-09-01这个交易日截至11:05的累计成交量和累计成交额', '600519某个交易日截至某时刻的累计成交量和成交额', 'cumulative volume for 600519 up to 11:05 on a past trading day', 'intraday minute bars for an A-share on a specific date'. ashares_quote is realtime-only (today, right now) a…

ParameterTypeDescription
date *stringThe trading day the bars are for, YYYY-MM-DD or YYYYMMDD, e.g. "2026-09-01".
symbols *stringOne 6-digit code or a comma-separated list, up to 5, e.g. "515050" or "600519,000001". sh/sz/bj prefixes accepted but optional. ETF codes work the same as stock codes.
intervalstringBar interval in minutes. Default "5". Smaller intervals keep a shorter lookback window — see the tool description.
up_tostringTime of day (24-hour, Beijing time) to cumulate volume/turnover through, e.g. "11:05". Omit for the whole trading day (or "as of now" if `date` is today and the market is open).

ashares_technical_indicators

Technical indicators for Chinese A-share stocks and ETFs (均线/布林/MACD/KDJ) — MA (moving averages, any windows, default MA5/MA10/MA20/MA60), BOLL (Bollinger Bands, default 20-period ×2 std dev), MACD (DIF/DEA/柱, default 12/26/9), and KDJ (K/D/J, default 9/3/3), computed from this pack's own daily OHLCV history (same source and codes as ashares_daily_history — ETF codes like 515050/588170/561980 work the same as stock codes). Answers '515050通信ETF华夏最近20个交易日MA5/MA10/MA20/BOLL/MACD/KDJ', '603986兆易创新周线MACD是否死叉', 'MA20 and BOLL for an A-share ETF'…

ParameterTypeDescription
codes *stringOne 6-digit code or a comma-separated list, up to 5, e.g. "515050" or "600519,300750". sh/sz/bj prefixes accepted but optional. ETF codes work the same as stock codes.
start *stringStart date for the RETURNED indicator range, YYYY-MM-DD or YYYYMMDD (inclusive). Extra history before this date is fetched automatically to warm up the indicators.
adjuststringPrice adjustment for splits/dividends: qfq = forward-adjusted (default), hfq = backward-adjusted, none = raw.
boll_multnumberBOLL standard-deviation multiplier, default 2.
boll_periodnumberBOLL period, default 20.
endstringEnd date, YYYY-MM-DD or YYYYMMDD (inclusive). Default: today.
indicatorsarrayWhich indicator families to compute. Default: all four.
kdj_m1numberKDJ K smoothing factor, default 3.
kdj_m2numberKDJ D smoothing factor, default 3.
kdj_nnumberKDJ RSV lookback period, default 9.
ma_windowsarrayMA window lengths in trading days. Default [5, 10, 20, 60].
macd_fastnumberMACD fast EMA period, default 12.
macd_signalnumberMACD signal (DEA) EMA period, default 9.
macd_slownumberMACD slow EMA period, default 26.

ashares_sector_capital_flow

China A-share INDUSTRY-SECTOR net capital inflow ranking (行业资金流向排名/板块资金流) for a trading day -- ranks Eastmoney's ~128 industry boards (行业板块) by main-capital net inflow (主力净流入), with the breakdown by order size (超大单/大单/中单/小单 net inflow in CNY), the day's change %, and each sector's single stock with the largest net inflow. Answers '今日行业资金流向排名', 'which industry sectors had the biggest net capital inflow today', '板块资金流排名', 'sector fund flow ranking', 'semiconductor sector money flow today'. This is a D…

ParameterTypeDescription
datestringTrading day as YYYY-MM-DD or YYYYMMDD (default: most recent day with published data -- today's session often has not published yet).
limitnumberHow many sectors to return, 1-130 (default 20).
orderstringdesc (default, biggest net inflow first) or asc (biggest net outflow first).
sortstringRank by net inflow amount in CNY (主力净流入, default), net inflow as a % of turnover (净流入占比), or the day's change % (涨跌幅).

ashares_stock_connect

Stock Connect (沪深港通) daily channel statistics: GROSS TURNOVER for Northbound (mainland A-shares bought via Hong Kong -- 沪股通/深股通/combined) and Southbound (Hong Kong-listed stocks bought by mainland investors -- 港股通沪/港股通深/combined), plus a best-effort per-stock "top traded stocks" list for Northbound. Answers "northbound stock connect turnover today", "沪深股通成交额", "how much did northbound/southbound trade today", "stock connect top traded stocks". IMPORTANT: mainland regulators (CSRC) stopped publishing DAILY net fund-flow figures (net buy/sell, da…

ParameterTypeDescription
datestringTrading day as YYYY-MM-DD or YYYYMMDD (default: most recent day with published data -- today's session often has not published yet).