I am working with Python and when I recall the price of all the coins available pretty often I get an error that I cannot filter "[ERROR] There is no data for the symbol XXX"
The code is as follows:
import requests
import datetime
import cryptocompare
import datetime
coin_list = cryptocompare.get_coin_list(format=False)
date_today = datetime.datetime.now()
for coin, data in coin_list.items():
nowprice = cryptocompare.get_historical_price(coin, 'USD', date_today)
print (nowprice)
Why I am getting this error? Is there a way to avoid it? And how can I filter the error so it doesn't show on the screen?
Thanks!!!