#2: Get Historical Data
We can also get the historical data for analysis or to plot a chart.
Last updated
Was this helpful?
We can also get the historical data for analysis or to plot a chart.
Last updated
Was this helpful?
There are 3 different endpoints to get historical data of a coin:
/coins/{id}/history
To get the price & market data of a coin on a specific day in the past (00:00 UTC)
/coins/{id}/market_chart
To get list of historical price & market data of a coin for X days before today.
/coins/{id}/market_chart/range
To get list of historical price & market data of a coin for a date range, between 'from' and 'to'.
Letβs try them out on
And yes, you may do so with contract address too:
/coins/{id}/contract/{contract_address}/market_chart/
/coins/{id}/contract/{contract_address}/market_chart/range