DAR was announced on Binance, it isnt available as a DAR_USDT trade pair and therefore returns an error which crashes the program. My solution was to add a try/except block to the request and then make it so if get_latest_price returns none if the response is an error instead of price and then telling the main function not to buy it if price=None. I also added a new json file of 'not listed' to check against so it is not trying to buy the unlisted coin every time its picked up by the scraper.
DAR was announced on Binance, it isnt available as a DAR_USDT trade pair and therefore returns an error which crashes the program. My solution was to add a try/except block to the request and then make it so if get_latest_price returns none if the response is an error instead of price and then telling the main function not to buy it if price=None. I also added a new json file of 'not listed' to check against so it is not trying to buy the unlisted coin every time its picked up by the scraper.