2. Get Historical Data
Tips
- Most of the historical data is returned and queried using UNIX Timestamp.
- If you are not familiar with UNIX Timestamp, you may use a tool like epochconverter.com to convert between UNIX Timestamp and human readable date.
- You may use either coin ID or contract address to get the historical data.
There are five different endpoints to get historical data of a coin:
Notes
The data granularity (interval) for /market_chart and /market_chart/range endpoints is automatic and based on the date range:
- 1 day from current time = 5-minutely data
- 1 day from anytime (except from current time) = hourly data
- 2 - 90 days from current time or anytime = hourly data
- above 90 days from current time or anytime = daily data (00:00 UTC)
