tRevert "Add JPY exchange rate" - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1c0e23c8b90a99f7a2fe1b8e2dbbd128fa1c7d5f DIR parent 56c94153ff60ddf917645ceaf7823c5994a2b630 HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 4 Mar 2018 10:35:14 +0100 Revert "Add JPY exchange rate" This reverts commit c2da8eb46df44f820ebe2715abe5d8d6dd83aeaa. Diffstat: M lib/currencies.json | 14 +++----------- M lib/exchange_rate.py | 19 ------------------- 2 files changed, 3 insertions(+), 30 deletions(-) --- DIR diff --git a/lib/currencies.json b/lib/currencies.json t@@ -798,14 +798,5 @@ "RUB", "USD" ], - "itBit": [], - "Bitbank": [ - "JPY" - ], - "Bitflyer": [ - "JPY" - ], - "Zaif": [ - "JPY" - ] -} + "itBit": [] +} +\ No newline at end of file DIR diff --git a/lib/exchange_rate.py b/lib/exchange_rate.py t@@ -159,19 +159,6 @@ class BitcoinVenezuela(ExchangeBase): return self.get_json('api.bitcoinvenezuela.com', "/historical/index.php?coin=BTC")[ccy +'_BTC'] -class Bitbank(ExchangeBase): - - def get_rates(self, ccy): - json = self.get_json('public.bitbank.cc', '/btc_jpy/ticker') - return {'JPY': Decimal(json['data']['last'])} - - -class BitFlyer(ExchangeBase): - - def get_rates(self, ccy): - json = self.get_json('bitflyer.jp', '/api/echo/price') - return {'JPY': Decimal(json['mid'])} - class Bitmarket(ExchangeBase): t@@ -363,12 +350,6 @@ class Winkdex(ExchangeBase): for h in history]) -class Zaif(ExchangeBase): - def get_rates(self, ccy): - json = self.get_json('api.zaif.jp', '/api/1/last_price/btc_jpy') - return {'JPY': Decimal(json['last_price'])} - - def dictinvert(d): inv = {} for k, vlist in d.items():