Get Historical Data
There are five different endpoints to get historical data of a coin:
Endpoint | Description |
---|---|
/v2/coins/{id}/history | Get the historical data (price, market cap, 24hrs volume, etc.) at a given date for a coin based on a particular coin id. |
/v2/coins/{id}/market_chart | Get the historical chart data of a coin including time in UNIX, price, market cap, and 24hrs volume based on a particular coin id. |
/v2/coins/{id}/market_chart/range | Get the historical chart data of a coin within a certain time range in UNIX along with price, market cap, and 24hrs volume based on a particular coin id. |
/v2/coins/{id}/contract/{contract_address}/market_chart | Get the historical chart data of a coin including time in UNIX, price, market cap, and 24hrs volume based on a token contract address. |
/v2/coins/{id}/contract/{contract_address}/market_chart/range | Get the historical chart data of a coin within a certain time range in UNIX along with price, market cap, and 24hrs volume based on a token contract address. |