Candlesticks
candlesticksFetch historical OHLCV candlestick data for a security symbol. Configure period from 1 minute to yearly, count up to 1000, and select intraday or all trading sessions.
Instructions
Get candlestick data (OHLCV). Only symbol is required; period defaults to day, count to 100 (max 1000), forward_adjust to false, trade_sessions to all. period: 1m/5m/15m/30m/60m/day/week/month/year. trade_sessions: intraday/all. If the account's entitlement caps out below the requested count, this returns as many candles as allowed instead of erroring — check the returned array length against count if an exact number matters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _jq | No | Optional jq filter (jaq syntax) applied to this tool's JSON response before it is returned; it never changes the upstream request. One output is returned as-is, several as a JSON array, none as []. Module imports and the `env`/`debug`/`stderr` builtins are unavailable. Example: .data | map({symbol}). Omit for the full response. | |
| count | No | Number of candlesticks (optional, max 1000; default 100) | |
| period | No | Period: 1m, 5m, 15m, 30m, 60m, day, week, month, year (default: day) | day |
| symbol | Yes | Security symbol, e.g. "700.HK". Use the canonical form — a padded code like "00700.HK" returns an empty record, not an error. | |
| forward_adjust | No | Whether to forward-adjust for splits/dividends (default: false / no adjust) | |
| trade_sessions | No | Trade sessions: "intraday" (regular hours only) or "all" (include pre-market and post-market; default "all") | all |