ashares_market_bars

Pack: china-exchange-data · Endpoint: https://gateway.pipeworx.io/china-exchange-data/mcp

沪市全市场行情 — Full-market latest-session board snapshot for SSE-listed A-shares (~2,358 stocks): code, name, last price, change %, volume, turnover amount (成交额). Built for running screens (momentum vs index, top movers) without querying each stock individually. This is the LATEST available trading session only (a live board snapshot, not a historical-date archive) — SZSE does not expose an equivalent single-call full-market bulk endpoint (its per-stock snapshot report needs one call per code), so this tool covers the Shanghai exchange only; asking for a past date returns the latest session with a note rather than silently substituting data. Answers ‘A股全市场行情’, ‘SSE full board today’, ‘screen all Shanghai A-shares by turnover’. Source: SSE yunhq public quote list (keyless).

Parameters

NameTypeRequiredDescription
datestringnoRequested date, YYYY-MM-DD. Informational only — the tool always returns the latest available SSE session and reports whether it matches this date.
limitnumbernoMax rows to return, 1-2500 (default 500). The response always reports the true total row count on the board.
sortstringnoSort rows by turnover amount (default), change %, or volume, descending.

Example call

Arguments

{
  "date": "2026-09-05",
  "limit": 15
}

curl

curl -X POST https://gateway.pipeworx.io/china-exchange-data/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ashares_market_bars","arguments":{"date":"2026-09-05","limit":15}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('ashares_market_bars', {
  "date": "2026-09-05",
  "limit": 15
});

More examples

{
  "limit": 500,
  "sort": "change_pct"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "china-exchange-data": {
      "url": "https://gateway.pipeworx.io/china-exchange-data/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 7, 2026