historical-prices
Retrieve historical OHLCV bars for stock symbols or OCC option contracts over a specified date range with daily, weekly, or monthly intervals.
Instructions
Historical OHLCV bars for a stock symbol or OCC option contract over a time range.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"start": "<start>",
"end": "<end>"
},
"name": "historical-prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End date in YYYY-MM-DD | |
| start | Yes | Start date in YYYY-MM-DD | |
| symbol | Yes | Stock symbol or OCC option contract (e.g. AAPL or AAPL250117C00150000). Use longer intervals for longer ranges. | |
| interval | No | Bar interval | daily |
| session_filter | No | Include extended-hours bars (all) or regular sessions only (open). Applies only to Tradier; Alpaca ignores this. | all |