get_historical_data
Fetch historical OHLCV price data for stocks or cryptocurrencies with intervals from 1 minute to 1 month. Use for charting and technical analysis.
Instructions
Retrieve historical OHLCV (Open, High, Low, Close, Volume) price data for a stock or cryptocurrency. Supports various time intervals from 1 minute to 1 month. Useful for charting and technical analysis.
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>",
"period1": "<period1>",
"interval": "<interval>"
},
"name": "get_historical_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Ticker symbol (e.g., AAPL, BTC-USD, MSFT) | |
| period1 | Yes | Start date/period. Can be ISO date (YYYY-MM-DD), relative period (1d, 7d, 1mo, 3mo, 1y), or timestamp. | |
| period2 | No | End date/period (optional, defaults to now). Can be ISO date (YYYY-MM-DD), relative period, or timestamp. | |
| interval | Yes | Data interval: 1m=1 minute, 5m=5 minutes, 15m=15 minutes, 30m=30 minutes, 1h=1 hour, 1d=1 day, 1wk=1 week, 1mo=1 month |