From b67295afa7be48e3cb52a22daeac9dce67223da1 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 8 Aug 2023 18:41:17 +0800 Subject: [PATCH] percetange fixed --- database_caller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database_caller.py b/database_caller.py index c9c1920..dd49004 100755 --- a/database_caller.py +++ b/database_caller.py @@ -875,7 +875,7 @@ def updateMarket(api_key, logf): all_market_settings['losers'][item['symbol']] = { "current": str(item['latestPrice']), "change": str(item['change']), - "percent_change": str(item['changePercent']), + "percent_change": str(item['changePercent'] * 100), "day_low": str(item['low']), "day_high": str(item['high']), "volume": human_format(item['latestVolume']) @@ -887,7 +887,7 @@ def updateMarket(api_key, logf): all_market_settings['gainers'][item['symbol']] = { "current": str(item['latestPrice']), "change": str(item['change']), - "percent_change": str(item['changePercent']), + "percent_change": str(item['changePercent'] * 100), "day_low": str(item['low']), "day_high": str(item['high']), "volume": human_format(item['latestVolume']) @@ -899,7 +899,7 @@ def updateMarket(api_key, logf): all_market_settings['mostactive'][item['symbol']] = { "current": str(item['latestPrice']), "change": str(item['change']), - "percent_change": str(item['changePercent']), + "percent_change": str(item['changePercent'] * 100), "day_low": str(item['low']), "day_high": str(item['high']), "volume": human_format(item['latestVolume'])