From 1a9a9980e2221615cfa12d829448b7af6e23c6ee Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 9 Feb 2022 14:19:31 +0000 Subject: [PATCH] Increase decimal places in rate --- handler/agora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/agora.py b/handler/agora.py index 3dd9333..d6a30b7 100644 --- a/handler/agora.py +++ b/handler/agora.py @@ -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])