stock-ohlcv
Retrieves historical OHLCV candlestick data for stocks, ETFs, or indexes. Supports multiple intervals and lookback periods for chart analysis and quantitative backtesting.
Instructions
Returns historical OHLCV (open/high/low/close/volume) candlestick data for a stock, ETF, or index. Supports intervals from 1-minute to monthly and ranges from 1 day to max history. Use for chart analysis, trend detection, and quantitative backtesting. $0.010/call — free upstream, no API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | No | Stock ticker symbol (e.g. 'AAPL', 'SPY', 'BTC-USD', '^VIX'). Case-insensitive. | |
| interval | No | Candlestick interval. Intraday ('1m'–'1h') limited to last 60 days. Default: '1d'. | |
| range | No | Lookback period. Default: '1mo'. Note: intraday intervals cap at 60d max. | |
| limit | No | Max candles to return (1–500, default 60). Applied from most recent. |