get_historical_prices
Retrieve historical cryptocurrency price data as timestamp-price pairs for charting, trend analysis, backtesting, or volatility metrics. Supports 1–365 days with adaptive granularity.
Instructions
Get historical price data for a cryptocurrency over a specified number of days. Returns an ordered array of [timestamp_ms, price] pairs suitable for charting, trend analysis, backtesting, or computing metrics like volatility and drawdown. Data granularity varies automatically: 5-minute intervals for 1 day, hourly for 2-90 days, and daily for 91-365 days. Use this when you need a price series rather than a single current price. For just the current price, use get_price instead. Valid range: 1 to 365 days. Accepts common symbols or CoinGecko IDs. The server retries once with a 5-second backoff on rate limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| symbol | Yes | ||
| currency | No | usd |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |