ashares_daily_history
Pack: china-stocks · Endpoint: https://gateway.pipeworx.io/china-stocks/mcp
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, so amount_cny is reported as “not_available” rather than estimated — use ashares_quote or ashares_turnover_ranking for same-day turnover amount. Source: Tencent/gtimg fqkline (keyless).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
codes | string | yes | One 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 | string | yes | Start date, YYYY-MM-DD or YYYYMMDD (inclusive). |
end | string | no | End date, YYYY-MM-DD or YYYYMMDD (inclusive). Default: today. |
adjust | string | no | Price adjustment for splits/dividends: qfq = forward-adjusted (default, prices comparable to today), hfq = backward-adjusted, none = raw unadjusted prices. |
Example call
Arguments
{
"codes": "300418,300364,002131,002354,300058",
"start": "2026-08-31",
"end": "2026-09-03",
"adjust": "qfq"
}
curl
curl -X POST https://gateway.pipeworx.io/china-stocks/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ashares_daily_history","arguments":{"codes":"300418,300364,002131,002354,300058","start":"2026-08-31","end":"2026-09-03","adjust":"qfq"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ashares_daily_history', {
"codes": "300418,300364,002131,002354,300058",
"start": "2026-08-31",
"end": "2026-09-03",
"adjust": "qfq"
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"china-stocks": {
"url": "https://gateway.pipeworx.io/china-stocks/mcp"
}
}
}
See Getting Started for client-specific install steps.