This content originally appeared on DEV Community and was authored by Antoni Pawlak
đź“‹ 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
- await Promise.all() decent blog post about it
Create a method to call an API | docs
Generate suitable time ranges
Make multiple calls to an API
Have a nice day! 🤓
This content originally appeared on DEV Community and was authored by Antoni Pawlak
Antoni Pawlak | Sciencx (2022-02-09T21:17:27+00:00) Get hourly data from Coingecko API. Retrieved from https://www.scien.cx/2022/02/09/get-hourly-data-from-coingecko-api/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.