mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
Merge pull request #2881 from lzsaver/wex
Removed BTCe and added WEX to exchange_rate.py
This commit is contained in:
commit
ae37b1100d
1 changed files with 11 additions and 11 deletions
|
@ -187,17 +187,6 @@ class BTCChina(ExchangeBase):
|
||||||
return {'CNY': Decimal(json['ticker']['last'])}
|
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):
|
class BTCParalelo(ExchangeBase):
|
||||||
|
|
||||||
def get_rates(self, ccy):
|
def get_rates(self, ccy):
|
||||||
|
@ -310,6 +299,17 @@ class Unocoin(ExchangeBase):
|
||||||
return {'INR': Decimal(json)}
|
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):
|
class Winkdex(ExchangeBase):
|
||||||
|
|
||||||
def get_rates(self, ccy):
|
def get_rates(self, ccy):
|
||||||
|
|
Loading…
Add table
Reference in a new issue