Market data
Query instruments, bars and time-share data without changing the chart.
1aa5e22). Descriptions are the exact text the model receives.instruments_query_name
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
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
symbol | string | Yes | min length 1 | |
sourceIds | string[] | — | item min length 1 |
Minimal input · Required fields only; placeholders are derived from the schema.
{
"symbol": "<symbol>"
}JSON Schema
…market_bars_query
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
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
symbol | string | Yes | min length 1 | |
period | enum | Yes | one of "1min", "5min", "15min", "30min", "60min", "4h", "daily", "weekly", "monthly", "quarterly", "yearly" | |
adjustment | enum | Yes | one of "qfq", "hfq", "splits", "none" | |
barAggregation | enum | Yes | one of "original", "aligned", "europe-traditional" | |
limit | integer | Yes | ≥ 1; ≤ 798 | |
sourceId | string | — | min length 1 | |
exchange | string | — | min length 1 | |
assetClass | enum | — | 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
Fetch one trading day of intraday time-share data for any symbol without changing the chart.
Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
symbol | string | Yes | min length 1 | |
tradingDate | string | Yes | pattern ^\d{4}-\d{2}-\d{2}$ | |
sourceId | string | — | min length 1 | |
exchange | string | — | min length 1 | |
assetClass | enum | — | 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
Fetch multiple trading days of intraday time-share data for any symbol without changing the chart.
Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
symbol | string | Yes | min length 1 | |
endTradingDate | string | Yes | pattern ^\d{4}-\d{2}-\d{2}$ | |
days | integer | Yes | ≥ 1 | |
sourceId | string | — | min length 1 | |
exchange | string | — | min length 1 | |
assetClass | enum | — | 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
…