Increase decimal places in rate

This commit is contained in:
Mark Veidemanis 2022-02-09 14:19:31 +00:00
parent 06e8662c21
commit 5c10d5f044
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])