Comparisons
Overlay other instruments on the main chart.
04d191a). Descriptions are the exact text the model receives.comparisons_list
List every comparison line on the price chart. Each item has identity, symbol, name, exchange, source, instrumentType, color and visible. Comparison lines always use the main chart period and adjustment. Use identity with comparisons_write; never invent identities.
Parameters
This tool takes no input.
JSON Schema
…comparisons_write
Add, show/hide or remove comparison lines on the price chart. create: symbol plus the optional routing fields returned by instruments_query (exchange, source, instrumentType). If a symbol matches several instruments, nothing is added and { status: "ambiguous", candidates } is returned: ask the user with ask_user, then retry create with the chosen candidate's symbol, exchange, source and instrumentType; never pick one yourself. update: identity plus visible. remove: identity. Comparison lines always use the main chart period and adjustment.
Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
action | enum | Yes | one of "create", "update", "remove" | create adds a comparison; update changes its visibility; remove deletes it. |
symbol | string | — | min length 1 | create only: exact symbol from instruments_query, for example "600519". |
exchange | string | — | min length 1 | Exchange from instruments_query, case-insensitive. Pass it when one symbol exists on several exchanges. |
source | string | — | min length 1 | Data source from instruments_query. Omit to let Core resolve across every enabled source. |
instrumentType | enum | — | one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto" | Asset class filter from instruments_query. Pass it only when candidates differ by class. |
identity | string | — | min length 1 | update/remove only: identity from comparisons_list or a previous create. |
visible | boolean | — | — | update only: true shows the line, false hides it without removing it. |
Minimal input · Required fields only; placeholders are derived from the schema.
{
"action": "create"
}JSON Schema
…