get_symbol_history
Access historical intra-day market data spanning 20+ years with second, minute, or hour precision for backtesting and analysis.
Instructions
Historical data as far as 20 years+ for intra-day historical data (second/minute/hour). Retrieve historical data for specific time periods with deep archive access → Returns {code: string, bar_type: string, bar_end?: number, last_update: number, series: [{time: number, open?: number, high?: number, low?: number, close: number, volume?: number, type?: string}]}. With abbr=true: {code: string, bar_type: string, bar_end?: number, last_update: number, series_keys: string[], series: number[][]} — compact arrays for reduced LLM token usage. Not all bar types include the same fields (e.g., tick data may only have [time, type, close]) — always check series_keys. Supports second/minute/hour bars only (for daily/weekly/monthly, use get_symbol_series). Returns one month of data per call. Iterate start_date (YYYY-MM) for longer ranges. For recent data (up to 30k bars) use get_symbol_series instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Symbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint. | |
| bar_type | Yes | (Required) Bar type. | |
| bar_interval | No | (Optional) Bar intervals. The combination of bar_type and bar_interval must not exceed one year. Default is 1. | |
| start_date | Yes | Starting period in YYYY-MM format for minute/hour intervals or YYYY-MM-DD for second intervals (UTC) | |
| extended | No | (Optional) Extended hours (Not all assets support extended hours). Default to true. | |
| dadj | No | (Optional) Dividend adjustment for equities and etfs (has no effect on assets without dividends). Default to false. | |
| badj | No | (Optional) Back-adjustment for continous futures contracts (has no effect on non-continous futures data). Default to true. | |
| settlement | No | (Optional) Set Settlement as daily close. Default is false | |
| abbr | No | (Optional) Set to 'true' for compact output optimized for LLM consumption. Returns series as arrays instead of objects with a series_keys header array. Does not affect response speed — only changes the output format for reduced token usage. | |
| filter | No | (Optional) JSONata expression to filter/transform the API response server-side before it reaches you. Use this to extract only the fields or rows you need, reducing token usage. See https://jsonata.org for syntax. |