if__name__=="__main__":### Name: Symbolcoinlist={}# MasterData.txt has dictionary of symbols, so we just extract the symbols from there# Store list of coins in 'names'json_data=json.load(open('MasterData.txt'))key=list(json_data.keys())[0]names=list(json_data[key].keys())# For each coin, try to get data, otherwise pass and continuetry:forcoininnames:coinlist[json_data[key][coin]['General']['CoinName']]=coinexcept:pass# See which coins have failed and maybe eliminate them next timefailed=[]# Plot dataforcoinincoinlist:try:time.sleep(3)print(coin,coinlist[coin])dates,subgrowth,totalsub=get_reddit_metrics_data(coin)_,closeprice=historicalprices(coinlist[coin],'USD')# print(closeprice)# graph(dates, closeprice, coin, 'Date', 'Price', pastxdays = 100)normalized_subgrowth=preprocessing.normalize([subgrowth])normalized_price=preprocessing.normalize([closeprice])normalized_totalsub=preprocessing.normalize([totalsub])plt.figure(figsize=(10,5))plt.title(coin)plt.plot(dates[-100:],normalized_subgrowth[0][-100:],'r')plt.plot(dates[-100:],normalized_price[0][-100:],'b')plt.plot(dates[-100:],normalized_totalsub[0][-100:],'g')plt.show()except:print('FAILED FOR: '+coin)failed.append(coin)