跳到正文

行情数据

查询品种、K 线和分时数据,不改变图表。

由固定提交的图表源码生成(1aa5e22)。工具说明保留模型实际收到的英文原文,不做翻译。

instruments_query_name

Query instrument name只读可并行图表内核源码

Look up security names by an exact symbol through the active market-data sources. Optionally restrict the lookup to sourceIds. Returns a Markdown table of every exact match with all instrument fields; never infer a name from a partial match. When the table contains more than one row, do not pick a candidate yourself: call ask_user with one option per row, where value is that row's id, label is its name, and description lists its source, exchange, and assetClass; wait for the user to choose before continuing.

参数

字段类型必填约束说明
symbolstring是min length 1
sourceIdsstring[]—item min length 1

最小输入 · 仅含必填字段,占位值由 schema 推导。

{
  "symbol": "<symbol>"
}
JSON Schema
…

market_bars_query

Query market bars只读可并行图表内核源码

Fetch the latest page of market bars for any symbol without changing the chart. limit must be an integer from 1 to 798. Pagination and retries are handled by the cache.

参数

字段类型必填约束说明
symbolstring是min length 1
periodenum是one of "1min", "5min", "15min", "30min", "60min", "4h", "daily", "weekly", "monthly", "quarterly", "yearly"
adjustmentenum是one of "qfq", "hfq", "splits", "none"
barAggregationenum是one of "original", "aligned", "europe-traditional"
limitinteger是≥ 1; ≤ 798
sourceIdstring—min length 1
exchangestring—min length 1
assetClassenum—one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto"

最小输入 · 仅含必填字段,占位值由 schema 推导。

{
  "symbol": "<symbol>",
  "period": "1min",
  "adjustment": "qfq",
  "barAggregation": "original",
  "limit": 1
}
JSON Schema
…

market_timeshare_query

Query market time share只读可并行图表内核源码

Fetch one trading day of intraday time-share data for any symbol without changing the chart.

参数

字段类型必填约束说明
symbolstring是min length 1
tradingDatestring是pattern ^\d{4}-\d{2}-\d{2}$
sourceIdstring—min length 1
exchangestring—min length 1
assetClassenum—one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto"

最小输入 · 仅含必填字段,占位值由 schema 推导。

{
  "symbol": "<symbol>",
  "tradingDate": "YYYY-MM-DD"
}
JSON Schema
…

market_timeshare_range_query

Query market time-share range只读可并行图表内核源码

Fetch multiple trading days of intraday time-share data for any symbol without changing the chart.

参数

字段类型必填约束说明
symbolstring是min length 1
endTradingDatestring是pattern ^\d{4}-\d{2}-\d{2}$
daysinteger是≥ 1
sourceIdstring—min length 1
exchangestring—min length 1
assetClassenum—one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto"

最小输入 · 仅含必填字段,占位值由 schema 推导。

{
  "symbol": "<symbol>",
  "endTradingDate": "YYYY-MM-DD",
  "days": 1
}
JSON Schema
…

本页内容