Summary: Get historical market data Operation ID: getCoinMarketChart Auth: none
Get historical price, market cap, and volume data for a specific coin over time. Returns arrays of timestamp-value pairs for charting. Use this to draw price charts or analyze historical trends. Supports multiple time ranges (1 day to max/all available data). The `interval` parameter can be set to 'daily' for daily aggregated data.
Original spec description
Get historical market data (price, market cap, volume) for a coin.
Usage Tips
- `days` parameter accepts: 1, 7, 14, 30, 90, 180, 365, or 'max' for all data
- Returns [timestamp, value] arrays — timestamps are in milliseconds since epoch
- Three arrays in response: prices, market_caps, total_volumes
- Set `interval=daily` for daily granularity (reduces data points for long ranges)
- Data granularity is automatic: shorter ranges have more frequent data points
Parameters (3)
days(string, query, required)
Number of days of data to retrieve (1, 7, 14, 30, 90, 180, 365, max)