Increase decimal places in rate
This commit is contained in:
parent
06e8662c21
commit
5c10d5f044
|
@ -385,7 +385,7 @@ class Agora(object):
|
||||||
base_currency_price = rates
|
base_currency_price = rates
|
||||||
for ad in ads:
|
for ad in ads:
|
||||||
price = float(ad[2])
|
price = float(ad[2])
|
||||||
rate = round(price / base_currency_price, 2)
|
rate = round(price / base_currency_price, 4)
|
||||||
ad.append(asset)
|
ad.append(asset)
|
||||||
ad.append(rate)
|
ad.append(rate)
|
||||||
return sorted(ads, key=lambda x: x[2])
|
return sorted(ads, key=lambda x: x[2])
|
||||||
|
|
Loading…
Reference in New Issue