对比
在主图上叠加其他品种。
1aa5e22)。工具说明保留模型实际收到的英文原文,不做翻译。comparisons_list
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 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.
参数
| 字段 | 类型 | 必填 | 约束 | 说明 |
|---|---|---|---|---|
symbol | string | 是 | min length 1 | |
market | string | — | min length 1 | |
exchange | string | — | min length 1 | |
source | string | — | min length 1 | |
assetClass | enum | — | one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto" | |
period | string | — | min length 1 | |
adjust | string | — | min length 1 | |
primary | object | — | closed | |
primary.symbol | string | — | min length 1 | |
primary.market | string | — | min length 1 | |
primary.exchange | string | — | min length 1 | |
primary.source | string | — | min length 1 | |
primary.period | string | — | min length 1 | |
primary.adjust | string | — | min length 1 | |
primary.startDate | string | — | min length 1 | |
primary.endDate | string | — | min length 1 |
最小输入 · 仅含必填字段,占位值由 schema 推导。
{
"symbol": "<symbol>"
}JSON Schema
…comparison_remove
Remove one comparison line by its identity from comparisons_list; a matching symbol code also works. The primary symbol and chart mode remain unchanged.
参数
| 字段 | 类型 | 必填 | 约束 | 说明 |
|---|---|---|---|---|
identity | string | 是 | min length 1 |
最小输入 · 仅含必填字段,占位值由 schema 推导。
{
"identity": "<identity>"
}JSON Schema
…comparisons_clear
Remove every comparison line while keeping the primary symbol and chart mode unchanged. Returns the number of removed symbols.
参数
此工具不需要输入。
JSON Schema
…