CyberPunkMetalHead / gateio-crypto-trading-bot-binance-announcements-new-coins

This is a crypto trading bot that scans the Binance Annoucements page for new coins, and places trades on Gateio
MIT License
1.21k stars 302 forks source link

Remove proxies when they return an invalid response #170

Open Linus045 opened 2 years ago

Linus045 commented 2 years ago

As mentioned here https://github.com/CyberPunkMetalHead/gateio-crypto-trading-bot-binance-announcements-new-coins/pull/139/files#r799489313 when a proxy is used and an invalid response code (429) is received we should either remove the proxy from the list of useable proxies or give it some kind of delay (5 min or something) until we use it again.

We should also consider the case when there is no valid proxy available. Currently we default to using no proxy, maybe we wanna force pull new proxies in that case?