tMerge pull request #2881 from lzsaver/wex - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ae37b1100d1ce04576a982ad17f6f935bb1625a8 DIR parent 23f36ea080b747463030d928adcc787c84918a08 HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 17 Sep 2017 07:17:40 +0200 Merge pull request #2881 from lzsaver/wex Removed BTCe and added WEX to exchange_rate.py Diffstat: M lib/exchange_rate.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) --- DIR diff --git a/lib/exchange_rate.py b/lib/exchange_rate.py t@@ -187,17 +187,6 @@ class BTCChina(ExchangeBase): return {'CNY': Decimal(json['ticker']['last'])} -class BTCe(ExchangeBase): - - def get_rates(self, ccy): - json_eur = self.get_json('btc-e.nz', '/api/3/ticker/btc_eur') - json_rub = self.get_json('btc-e.nz', '/api/3/ticker/btc_rur') - json_usd = self.get_json('btc-e.nz', '/api/3/ticker/btc_usd') - return {'EUR': Decimal(json_eur['btc_eur']['last']), - 'RUB': Decimal(json_rub['btc_rur']['last']), - 'USD': Decimal(json_usd['btc_usd']['last'])} - - class BTCParalelo(ExchangeBase): def get_rates(self, ccy): t@@ -310,6 +299,17 @@ class Unocoin(ExchangeBase): return {'INR': Decimal(json)} +class WEX(ExchangeBase): + + def get_rates(self, ccy): + json_eur = self.get_json('wex.nz', '/api/3/ticker/btc_eur') + json_rub = self.get_json('wex.nz', '/api/3/ticker/btc_rur') + json_usd = self.get_json('wex.nz', '/api/3/ticker/btc_usd') + return {'EUR': Decimal(json_eur['btc_eur']['last']), + 'RUB': Decimal(json_rub['btc_rur']['last']), + 'USD': Decimal(json_usd['btc_usd']['last'])} + + class Winkdex(ExchangeBase): def get_rates(self, ccy):