get_historical_prices
Need historical stock prices? Retrieve OHLCV candles by specifying ticker, timeframe, and interval to analyze past market performance and spot trends.
Instructions
Get historical price data for a stock.
Args: ticker: Stock symbol (e.g., 'AAPL', 'MSFT') timeframe: Time range - '1D', '1W', '1M', '3M', '1Y', '5Y' interval: Data interval - '1min', '5min', '15min', '30min', '60min', '1day'
Returns: Historical OHLCV data as a list of 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 |
|---|---|---|---|
| ticker | Yes | ||
| interval | No | 1day | |
| timeframe | No | 1M |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||