How can i get sparkline with timestamps for a specific coin?

how can i get sparkline with timestamps for a specific coin?

Hi testts!

Good question! However, sparklines do not have timestamps; this is a deliberate decision: they are a list of average prices based on the timeperiod you choose.

So let’s say you have picked the 30 days timeperiod, a list of about 25 prices will be calculated with the same interval for these 30 days. That is about 1.2 day per datapoint. Each datapoint does not exactly resemble a timestamp for a specific point in time, but it resembles an average for the roughly 1.2 days you requested.

We do provide historic prices with timestamps, in another endpoint called price history. It’s included in the free tier as well! Read more about it in our documentation. I hope this one helps, if not, let us know!

2 Likes