From 5c10d5f044a48da24d3b6c2f1a682e657b91db17 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])