added crypto name
This commit is contained in:
parent
e348dc1b3c
commit
6478a8b191
@ -643,7 +643,7 @@ def updateCrypto(api_key, logf):
|
|||||||
|
|
||||||
if symbol.upper() + ',' + base.upper() == sb:
|
if symbol.upper() + ',' + base.upper() == sb:
|
||||||
|
|
||||||
coin_info[symbol.upper() + ',' + base.upper()] = {'current': d['price'], '24hr_change': d['price_over_24hr'], 'percent_change': d['percent_over_24hr'], 'volume': human_format(d['volume']), 'day_low': d['day_low'], 'day_high': d['day_high']}
|
coin_info[symbol.upper() + ',' + base.upper()] = {'current': d['price'], '24hr_change': d['price_over_24hr'], 'percent_change': d['percent_over_24hr'], 'volume': human_format(d['volume']), 'day_low': d['day_low'], 'day_high': d['day_high'], 'name': d['name']}
|
||||||
|
|
||||||
all_crypto_settings['symbols'] = coin_info
|
all_crypto_settings['symbols'] = coin_info
|
||||||
with open('csv/crypto_settings.json', 'w+') as f:
|
with open('csv/crypto_settings.json', 'w+') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user