Merge pull request #1631 from pdroalves/master

Added new exchangers to Exchange rates plugin
This commit is contained in:
ThomasV 2016-01-30 16:27:06 +01:00
commit 7c7722439b
1 changed files with 17 additions and 0 deletions

View File

@ -259,6 +259,23 @@ class Winkdex(ExchangeBase):
return dict([(h['timestamp'][:10], h['price'] / 100.0)
for h in history])
class MercadoBitcoin(ExchangeBase):
def get_rates(self,ccy):
json = self.get_json('mercadobitcoin.net',
"/api/ticker/ticker_bitcoin")
return {'BRL': Decimal(json['ticker']['last'])}
def history_ccys(self):
return ['BRL']
class Bitcointoyou(ExchangeBase):
def get_rates(self,ccy):
json = self.get_json('bitcointoyou.com',
"/API/ticker.aspx")
return {'BRL': Decimal(json['ticker']['last'])}
def history_ccys(self):
return ['BRL']
def dictinvert(d):