Closed Linus045 closed 2 years ago
@Linus045 perhaps we can extract only one general method which we can call something like get_coin_announcement
instead of duplicate it?
The context of my suggestion is the following: https://deviq.com/principles/dont-repeat-yourself
yeah i was thinking about refactoring that as well but didn't want to change so much for a quick bugfix.
This prevents a crash when an invalid status code is received when pulling announcements from binance or kucoin. We make sure the status code is 200 (OK) and otherwise log an error.