Skip to content

Comparisons

Overlay other instruments on the main chart.

Generated from the pinned chart source (04d191a). Descriptions are the exact text the model receives.

comparisons_list

List comparison symbolsRead-onlyChart coreSource

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

Edit comparison symbolsModifies the chartChart coreSource

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

NameTypeRequiredConstraintsDescription
actionenumYesone of "create", "update", "remove"create adds a comparison; update changes its visibility; remove deletes it.
symbolstring—min length 1create only: exact symbol from instruments_query, for example "600519".
exchangestring—min length 1Exchange from instruments_query, case-insensitive. Pass it when one symbol exists on several exchanges.
sourcestring—min length 1Data source from instruments_query. Omit to let Core resolve across every enabled source.
instrumentTypeenum—one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto"Asset class filter from instruments_query. Pass it only when candidates differ by class.
identitystring—min length 1update/remove only: identity from comparisons_list or a previous create.
visibleboolean——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
…

On this page