Increase decimal places in rate
This commit is contained in:
parent
dc1ffffbb4
commit
1a9a9980e2
|
@ -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