Skip to main content
Glama

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

ashare_quote

A股/港股/美股实时行情快照(轻量 8 字段:现价/开高低/成交量/成交额/换手率)。用户问'某股票现在多少钱/什么价'用这个。⚠️ data 是数组(默认 30 条日线,data[0] 为最新)—— 取现价用 data[0].last。⚠️ 换手率的字段名是 turnover(%)—— 与 /v1/snapshot 同名同值。⚠️ 不含估值/市值 —— 用 ashare_snapshot(35 字段,付费)。要历史走势请用 ashare_kline;要**五档盘口(order book)**请用 ashare_orderbook。

⭐ 要查多只股票(自选池 / 一个行业 / 全市场切片)—— 用 ashare_quote_batch,不要循环调用本工具。自己循环 300 只 = 300 次调用 × 约 0.7 秒 ≈ 3.5 分钟(还会撞限频退避);ashare_quote_batch 一次调用 4 秒左右拿完,且逐只标明成功与否(缺了哪只一眼可见)。

⚠️ 本工具的 code 虽然也接受逗号(付费不限只数),但返回是扁平行且不带逐只状态——混在一起、缺了哪只要自己算 ⇒ 多只场景请用 ashare_quote_batch(专业版 ¥99 及以上)。

只读查询;数据为当日盘中滚动更新(约每分钟刷新)。⚠️ 免费 / 匿名档按 5 分钟刷新(保障服务稳定性);付费档实时(每次取此刻最新)。⚠️ 匿名单次最多 5 只标的(付费不限)。· 免费工具(无需 Key)⭐ 美股三大指数也能查:道指 usDJI · 纳指 usIXIC · 标普500 usINX(不是 usSPX)。

Input Schema

NameRequiredDescriptionDefault
codeYes股票代码,带市场前缀:sh600667 / sz000001 / hk00700

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / code / description
      Added value: +"股票代码,带市场前缀:sh600667 / sz000001 / hk00700"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations available, the description carries the behavioral burden well: it discloses read-only behavior, intraday rolling refresh cadence, free/anonymous 5-minute refresh limits, anonymous 5-symbol limit, array-shaped return data, and field naming quirks such as turnover. This is substantial context beyond the schema.

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

Conciseness3/5

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

The definition is front-loaded and information-dense, but it is long and repetitive: the multi-symbol warning about ashare_quote_batch appears in two consecutive blocks. Emojis and bold warnings add emphasis but also bulk.

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?

Given the tool's complexity, output schema availability, and the many sibling alternatives, the description is complete enough for correct invocation. It covers purpose, alternatives, data shape, refresh tiers, anonymous limits, and index symbol edge cases.

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 description coverage is 100%, so the baseline is 3, but the description adds useful semantics: code accepts comma-separated symbols, multi-symbol use is discouraged in favor of batch, and specific US index symbols like usDJI/usIXIC/usINX are documented.

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?

The description states a specific verb and resource: real-time quote snapshot for A-shares, HK, and US stocks, with a precise 8-field scope. It explicitly distinguishes itself from ashare_snapshot, ashare_kline, ashare_orderbook, and ashare_quote_batch.

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?

It gives explicit when-to-use guidance ('用户问某股票现在多少钱/什么价') and when-not-to-use guidance by naming alternatives: ashare_snapshot for valuation, ashare_kline for historical trends, ashare_orderbook for order book, and ashare_quote_batch for multiple symbols.

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