跳到正文

对比

在主图上叠加其他品种。

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

comparisons_list

List comparison symbols只读可并行图表内核源码

List every comparison symbol currently overlaid on the chart. Each item exposes the stable identity, the complete symbol spec, and the assigned line color. Use identity with comparison_remove.

参数

此工具不需要输入。

JSON Schema
…

comparison_create

Add comparison symbol修改图表按序执行图表内核源码

Add one comparison symbol to the main chart. symbol is required and is resolved against the active market-data sources so the real exchange, id, and params are used; source, exchange, and assetClass restrict which instrument the code may resolve to; assetClass only accepts a known class, never unknown. primary is the chart main symbol; its source, period, and adjust only fill omitted fields and never override the resolved instrument. When several distinct instruments match, nothing is added and the result is { status: "ambiguous", candidates: [...] }: ask the user to choose with the ask_user tool, then retry with the chosen candidate's source and exchange (add assetClass only when its class is not unknown). Never pick a candidate yourself. Fails with an actionable reason only when the symbol cannot be resolved or is already compared; an unknown market is rejected.

参数

字段类型必填约束说明
symbolstring是min length 1
marketstring—min length 1
exchangestring—min length 1
sourcestring—min length 1
assetClassenum—one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto"
periodstring—min length 1
adjuststring—min length 1
primaryobject—closed
primary.symbolstring—min length 1
primary.marketstring—min length 1
primary.exchangestring—min length 1
primary.sourcestring—min length 1
primary.periodstring—min length 1
primary.adjuststring—min length 1
primary.startDatestring—min length 1
primary.endDatestring—min length 1

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

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

comparison_remove

Remove comparison symbol修改图表按序执行图表内核源码

Remove one comparison line by its identity from comparisons_list; a matching symbol code also works. The primary symbol and chart mode remain unchanged.

参数

字段类型必填约束说明
identitystring是min length 1

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

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

comparisons_clear

Clear comparison symbols修改图表按序执行图表内核源码

Remove every comparison line while keeping the primary symbol and chart mode unchanged. Returns the number of removed symbols.

参数

此工具不需要输入。

JSON Schema
…

本页内容