cointop-sh / cointop

A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
https://cointop.sh
Apache License 2.0
3.98k stars 311 forks source link

Dynamically avoid rate-limit rather than adding delays #267

Open lyricnz opened 2 years ago

lyricnz commented 2 years ago

Rather than adding arbitrary time-delays between operations, it may be better to count the current requests, and slow down (or pause) requests when we get close to a predefined limit (50/min for coingecko). This would improve apparent responsiveness of the interface. See #265 and #228

lyricnz commented 2 years ago

Or we could just wait for the error message, and (exponentially?) back off

lyricnz commented 2 years ago

Need better visibility to HTTP/API errors on the screen too.