Skip to main content
Glama

A股数据 API (A-Share Data API)

ashare_technical_batch

⭐ 批量技术指标:一次拿多只的 MA / EMA / MACD / KDJ / RSI / BOLL / BIAS / WR / DMI / OBV / VR / BBI / TRIX / DPO / PSY / ENE / CCI 等共 55 项,逐只标明成功与否。用户问'这批股票的技术面怎么样/哪些金叉了/哪些超买了/哪些在均线之上'用这个。⚠️ 与 ashare_technical 的关系:/v1/technical 的 code 虽支持逗号,但返回是一整张宽表、没有逐只状态,无效码会静默消失(少了哪只你算不出来)⇒ 多只请用本工具;只查一只也可以用它(codes 传一个即可)。⚠️ 上限:专业版 500 只 / 不限量 1000 只 —— 这是目前唯一不受单次只数限制的批量命令:实测 200 只 0.9 秒、500 只 1.2 秒、1000 只 1.8 秒、3000 只 2.8 秒且 100% 返回(自己循环 500 次要 500 次请求、约 8 分钟,还会撞限频退避)。⚠️ 用法:codes 逗号分隔(sh600519,sz000001),支持裸 6 位码;A 股(含北交所)/ 港股 / 美股可混传,指数也能取(sh000001);date 取指定交易日(YYYY-MM-DD,对所有代码同时生效,非交易日自动回退)。⚠️ 只有日线口径 —— 没有周期参数(传 week/month/m30 得到的仍是日线数值),本工具因此不提供周期参数(⛔ 别以为拿到的是周线 MA5)。⚠️ 返回:data 数组,每项 {code, ok, data}(或 error),取几只回几个条目;每项内部与 /v1/technical 的单行完全一致(code/name/date/closePrice/ma_MA_5/macd_DIF/rsi_RSI_6…,共 55 列);同时给 requested / returned / failed。⚠️ 按实际返回只数计费,失败的不计。⚠️ 付费工具:专业版(¥99)及以上,标准版不可用。

Input Schema

NameRequiredDescriptionDefault
dateNo交易日 YYYY-MM-DD(默认最新,对所有代码同时生效)
codesYes股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤500 只 · 机构版 ≤1000 只)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / codes / description
      Previous value: -"股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤500 只 · 不限量版 ≤1000 只)"New value: +"股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤500 只 · 机构版 ≤1000 只)"
  2. Added

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: hard caps (Pro 500 / unlimited 1000), measured latency at 200/500/1000/3000 codes, per-code status instead of silent drops, billing charged only on actually returned codes, paid-tier requirement (¥99 Pro+), and the critical constraint that only daily bars exist so week/month/m30 silently yield daily values.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded with a starred one-line summary and then segmented ⚠️ blocks for relationship, limits, usage, period constraint, return shape, and billing. Dense and emoji-heavy, and the per-code-count latency figures are somewhat redundant with the stated caps, but nearly every sentence carries a distinct operational caveat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a batch tool with an output schema present, this explains the return shape anyway (data array of {code, ok, data|error}, 55 columns mirroring /v1/technical, plus requested/returned/failed counts), covers failure semantics, cost, and access tier. Nothing an agent needs to call it correctly or interpret partial failures is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description still adds real meaning: comma-separated codes with bare 6-digit support, mixed A-share (incl. Beijing exchange)/HK/US in one call, index codes like sh000001, and non-trading-day auto fallback for `date` which applies to all codes at once. Minor friction: '专业版 500 只 / 不限量 1000 只' is awkwardly phrased and slightly out of step with the schema's '机构版 ≤1000'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — batch retrieval of 55 named technical indicators (MA/EMA/MACD/KDJ/RSI/BOLL/...) with per-code success flags. It explicitly distinguishes itself from the sibling ashare_technical by explaining that the single-code endpoint returns one wide table with no per-code status and silently drops invalid codes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the triggering user questions verbatim ('这批股票的技术面怎么样/哪些金叉了/哪些超买了'), states the rule 'multi-code → use this tool,' and explicitly permits single-code use. It also contrasts the alternative path (looping 500 calls = 500 requests, ~8 min, hits rate-limit backoff), so the agent has both when-to-use and when-not.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources