percetange fixed

This commit is contained in:
Justin 2023-08-08 18:41:17 +08:00 committed by GitHub
parent 56c7ba19ac
commit b67295afa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -875,7 +875,7 @@ def updateMarket(api_key, logf):
all_market_settings['losers'][item['symbol']] = { all_market_settings['losers'][item['symbol']] = {
"current": str(item['latestPrice']), "current": str(item['latestPrice']),
"change": str(item['change']), "change": str(item['change']),
"percent_change": str(item['changePercent']), "percent_change": str(item['changePercent'] * 100),
"day_low": str(item['low']), "day_low": str(item['low']),
"day_high": str(item['high']), "day_high": str(item['high']),
"volume": human_format(item['latestVolume']) "volume": human_format(item['latestVolume'])
@ -887,7 +887,7 @@ def updateMarket(api_key, logf):
all_market_settings['gainers'][item['symbol']] = { all_market_settings['gainers'][item['symbol']] = {
"current": str(item['latestPrice']), "current": str(item['latestPrice']),
"change": str(item['change']), "change": str(item['change']),
"percent_change": str(item['changePercent']), "percent_change": str(item['changePercent'] * 100),
"day_low": str(item['low']), "day_low": str(item['low']),
"day_high": str(item['high']), "day_high": str(item['high']),
"volume": human_format(item['latestVolume']) "volume": human_format(item['latestVolume'])
@ -899,7 +899,7 @@ def updateMarket(api_key, logf):
all_market_settings['mostactive'][item['symbol']] = { all_market_settings['mostactive'][item['symbol']] = {
"current": str(item['latestPrice']), "current": str(item['latestPrice']),
"change": str(item['change']), "change": str(item['change']),
"percent_change": str(item['changePercent']), "percent_change": str(item['changePercent'] * 100),
"day_low": str(item['low']), "day_low": str(item['low']),
"day_high": str(item['high']), "day_high": str(item['high']),
"volume": human_format(item['latestVolume']) "volume": human_format(item['latestVolume'])