missed something
This commit is contained in:
parent
98ee21b78d
commit
596a8cf991
@ -177,7 +177,7 @@ def updateStocks(api_key, logf):
|
||||
if len(data) > 0:
|
||||
for symbol in symbols:
|
||||
try:
|
||||
stock_info[data[symbol]['quote']['symbol']] = {'current': data[symbol]['quote']['latestPrice'], 'change': data[symbol]['quote']['change'], 'percent_change':data[symbol]['quote']['changePercent'] * 100, 'day_low':data[symbol]['low'], 'day_high':data[symbol]['high'], 'volume':data[symbol]['latestVolume']}
|
||||
stock_info[data[symbol]['quote']['symbol']] = {'current': data[symbol]['quote']['latestPrice'], 'change': data[symbol]['quote']['change'], 'percent_change':data[symbol]['quote']['changePercent'] * 100, 'day_low':data[symbol]['quote']['low'], 'day_high':data[symbol]['quote']['high'], 'volume':data[symbol]['quote']['latestVolume']}
|
||||
except:
|
||||
pass
|
||||
all_stocks_settings['symbols'] = stock_info
|
||||
|
Loading…
Reference in New Issue
Block a user