Skip to content

Market data

Query instruments, bars and time-share data without changing the chart.

Generated from the pinned chart source (1aa5e22). Descriptions are the exact text the model receives.

instruments_query_name

Query instrument nameRead-onlyRuns in parallelChart coreSource

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.

Parameters

NameTypeRequiredConstraintsDescription
symbolstringYesmin length 1
sourceIdsstring[]—item min length 1

Minimal input · Required fields only; placeholders are derived from the schema.

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

market_bars_query

Query market barsRead-onlyRuns in parallelChart coreSource

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.

Parameters

NameTypeRequiredConstraintsDescription
symbolstringYesmin length 1
periodenumYesone of "1min", "5min", "15min", "30min", "60min", "4h", "daily", "weekly", "monthly", "quarterly", "yearly"
adjustmentenumYesone of "qfq", "hfq", "splits", "none"
barAggregationenumYesone of "original", "aligned", "europe-traditional"
limitintegerYes≥ 1; ≤ 798
sourceIdstring—min length 1
exchangestring—min length 1
assetClassenum—one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto"

Minimal input · Required fields only; placeholders are derived from the schema.

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

market_timeshare_query

Query market time shareRead-onlyRuns in parallelChart coreSource

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

Parameters

NameTypeRequiredConstraintsDescription
symbolstringYesmin length 1
tradingDatestringYespattern ^\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"

Minimal input · Required fields only; placeholders are derived from the schema.

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

market_timeshare_range_query

Query market time-share rangeRead-onlyRuns in parallelChart coreSource

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

Parameters

NameTypeRequiredConstraintsDescription
symbolstringYesmin length 1
endTradingDatestringYespattern ^\d{4}-\d{2}-\d{2}$
daysintegerYes≥ 1
sourceIdstring—min length 1
exchangestring—min length 1
assetClassenum—one of "stock", "index", "fund", "etf", "future", "option", "forex", "crypto"

Minimal input · Required fields only; placeholders are derived from the schema.

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

On this page