DEV Community

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

Posted on

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! πŸ€“

Top comments (0)