DEV Community

Cover image for Get hourly data from Coingecko API
Antoni Pawlak
Antoni Pawlak

Posted on

3 1

Get hourly data from Coingecko API

📋 Task

Get hourly price data on an arbitrary time period from Coingecko API


🤯 Problem

Hourly granularity is available only in 1-90 days span


💡 Solution

Cut bigger time frames on multiple 90-day calls


❓ How


Create a method to call an API | docs

create a method to call an API


Generate suitable time ranges

generate suitable time ranges


Make multiple calls to an API

make multiple calls to an API


Have a nice day! 🤓

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️