Increase decimal places in rate

This commit is contained in:
Mark Veidemanis 2022-02-09 14:19:31 +00:00
parent dc1ffffbb4
commit 1a9a9980e2
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ class Agora(object):
base_currency_price = rates
for ad in ads:
price = float(ad[2])
rate = round(price / base_currency_price, 2)
rate = round(price / base_currency_price, 4)
ad.append(asset)
ad.append(rate)
return sorted(ads, key=lambda x: x[2])