fixed volume issue with updatemarket

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

View File

@ -878,7 +878,7 @@ def updateMarket(api_key, logf):
"percent_change": str(item['changePercent']), "percent_change": str(item['changePercent']),
"day_low": str(item['low']), "day_low": str(item['low']),
"day_high": str(item['high']), "day_high": str(item['high']),
"volume": human_format(item['volume']) "volume": human_format(item['latestVolume'])
} }
except: except:
pass pass
@ -890,7 +890,7 @@ def updateMarket(api_key, logf):
"percent_change": str(item['changePercent']), "percent_change": str(item['changePercent']),
"day_low": str(item['low']), "day_low": str(item['low']),
"day_high": str(item['high']), "day_high": str(item['high']),
"volume": human_format(item['volume']) "volume": human_format(item['latestVolume'])
} }
except: except:
pass pass
@ -902,7 +902,7 @@ def updateMarket(api_key, logf):
"percent_change": str(item['changePercent']), "percent_change": str(item['changePercent']),
"day_low": str(item['low']), "day_low": str(item['low']),
"day_high": str(item['high']), "day_high": str(item['high']),
"volume": human_format(item['volume']) "volume": human_format(item['latestVolume'])
} }
except: except:
pass pass