Get Historical Stock Prices
get_historical_pricesGet historical OHLCV price candles for a stock at daily, weekly or monthly resolution, for a period shorthand (1M, 3M, 6M, 1Y, 5Y or the full history) or an explicit from/to UNIX timestamp window. The default is one year of daily candles.
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": {
"ticker": "<ticker>"
},
"name": "get_historical_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date as UNIX timestamp (overrides period) | |
| from | No | Start date as UNIX timestamp (overrides period) | |
| period | No | Lookback period shorthand (default: "1Y"). Ignored if from/to are provided. | |
| ticker | Yes | Stock ticker symbol (e.g., "AAPL", "TSLA") | |
| resolution | No | Candle resolution: "D" (daily, default), "W" (weekly), "M" (monthly) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |