Browse Source

Removed BTCe and added WEX to exchange_rate.py

Notice: WEX uses RUR instead of RUB, but we return it as RUB to conform to ISO 4217.
seed_v14
Alexx Saver 7 years ago
committed by GitHub
parent
commit
7b3a398d46
  1. 22
      lib/exchange_rate.py

22
lib/exchange_rate.py

@ -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):
@ -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):

Loading…
Cancel
Save