Skip to content

Market data

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

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

instruments_query

Query instrumentRead-onlyChart coreSource

Find instruments by an exact symbol or by a name keyword. Exact symbol matches win; otherwise keyword candidates are returned. When several instruments match, choose from the table or ask the user — never invent a symbol. No source can serve this tool right now.

Parameters

NameTypeRequiredConstraintsDescription
querystringYesmin length 1Exact symbol such as "600519", or a name keyword such as "茅台".
sourcesstring[]—item min length 1Restrict the search to these sources. Omit to search every available source.
limitinteger—≥ 1; ≤ 50Maximum number of matches to return. Defaults to 10.

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

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

market_bars_query

Query market barsRead-onlyChart coreSource

Fetch bars for any symbol without changing the chart. Omit every date to get the latest bars. from/to select a window: "YYYY-MM-DD" for daily and above, RFC 3339 with offset for intraday. limit caps the returned bars; truncated=true means the window was not fully covered. No source can serve this tool right now.

Parameters

NameTypeRequiredConstraintsDescription
symbolstringYesmin length 1Exact symbol as returned by instruments_query.
exchangestring—min length 1Exchange from instruments_query, case-insensitive. Pass it when one symbol exists on several exchanges.
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.
periodenum—one of "1min", "5min", "15min", "30min", "60min", "4h", "daily", "weekly", "monthly", "quarterly", "yearly"Bar period. Defaults to "daily".
adjustmentenum—one of "qfq", "hfq", "splits", "none"Price adjustment. Defaults to "none".
fromstring——Window start, inclusive. "YYYY-MM-DD" for daily and above; RFC 3339 with offset for intraday, for example "2026-11-18T09:30:00+08:00".
tostring——Window end, inclusive. Same format as from. Omit to end at the latest bar.
limitinteger—≥ 1; ≤ 2000Maximum number of bars to return. Defaults to 200.
sourcestring—min length 1Data source from instruments_query. Omit to let Core resolve across every enabled source.

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

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

market_timeshare_query

Query market time shareRead-onlyChart coreSource

Fetch intraday time share for any symbol. Omit tradingDate to use the latest trading day with data; days returns that many trading days ending at tradingDate, each with its own preClose. Multi-day requests need a source that supports timeShareRange. No source can serve this tool right now.

Parameters

NameTypeRequiredConstraintsDescription
symbolstringYesmin length 1Exact symbol as returned by instruments_query.
exchangestring—min length 1Exchange from instruments_query, case-insensitive. Pass it when one symbol exists on several exchanges.
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.
tradingDatestring—pattern ^\d{4}-\d{2}-\d{2}$Trading day in the instrument timezone, for example "2026-11-18".
daysinteger—≥ 1; ≤ 30Number of trading days ending at tradingDate. Defaults to 1, at most 30.
sourcestring—min length 1Data source from instruments_query. Omit to let Core resolve across every enabled source.

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

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

On this page