From cdaf874228675c1ad5e6d15bcf1e8252e0fad215 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Thu, 31 Jan 2019 20:30:57 +0530 Subject: [PATCH] Fixing exchanges error --- electrum/currencies.json | 2 +- electrum/exchange_rate.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/currencies.json b/electrum/currencies.json index fc9eda52..abd377e9 100644 --- a/electrum/currencies.json +++ b/electrum/currencies.json @@ -41,4 +41,4 @@ "USD", "VND" ] -} +} \ No newline at end of file diff --git a/electrum/exchange_rate.py b/electrum/exchange_rate.py index 62a9e805..867b3d06 100644 --- a/electrum/exchange_rate.py +++ b/electrum/exchange_rate.py @@ -262,7 +262,6 @@ class CoinDesk(ExchangeBase): json = await self.get_json('api.coindesk.com', '/v1/bpi/currentprice/%s.json' % ccy) result = {ccy: Decimal(json['bpi'][ccy]['rate_float'])} - print(result) return result def history_starts(self): @@ -280,6 +279,7 @@ class CoinDesk(ExchangeBase): json = await self.get_json('api.coindesk.com', query) return json['bpi'] + class CoinMarketcap(ExchangeBase): async def get_rates(self, ccy): @@ -613,4 +613,4 @@ class FxThread(ThreadJob): def timestamp_rate(self, timestamp): from .util import timestamp_to_datetime date = timestamp_to_datetime(timestamp) - return self.history_rate(date) + return self.history_rate(date) \ No newline at end of file