From 56c7ba19acb3f439a9e2b3e5e77e7f4bc5a070fc Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 8 Aug 2023 18:35:55 +0800 Subject: [PATCH] fixed volume issue with updatemarket --- database_caller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database_caller.py b/database_caller.py index 10f5aae..c9c1920 100755 --- a/database_caller.py +++ b/database_caller.py @@ -878,7 +878,7 @@ def updateMarket(api_key, logf): "percent_change": str(item['changePercent']), "day_low": str(item['low']), "day_high": str(item['high']), - "volume": human_format(item['volume']) + "volume": human_format(item['latestVolume']) } except: pass @@ -890,7 +890,7 @@ def updateMarket(api_key, logf): "percent_change": str(item['changePercent']), "day_low": str(item['low']), "day_high": str(item['high']), - "volume": human_format(item['volume']) + "volume": human_format(item['latestVolume']) } except: pass @@ -902,7 +902,7 @@ def updateMarket(api_key, logf): "percent_change": str(item['changePercent']), "day_low": str(item['low']), "day_high": str(item['high']), - "volume": human_format(item['volume']) + "volume": human_format(item['latestVolume']) } except: pass