1
0

added therocktrading exchange rate (#4272)

This commit is contained in:
mhitcher
2018-04-24 03:28:38 -04:00
committed by ghost43
parent 9fb927a068
commit 5284aef820
2 changed files with 29 additions and 21 deletions

View File

@@ -114,7 +114,6 @@ class ExchangeBase(PrintError):
rates = self.get_rates('')
return sorted([str(a) for (a, b) in rates.items() if b is not None and len(a)==3])
class BitcoinAverage(ExchangeBase):
def get_rates(self, ccy):
@@ -325,9 +324,12 @@ class NegocieCoins(ExchangeBase):
json = self.get_json('api.bitvalor.com', '/v1/ticker.json')
return {'BRL': Decimal(json['ticker_1h']['exchanges']['NEG']['last'])}
def history_ccys(self):
return ['BRL']
class TheRockTrading(ExchangeBase):
def get_rates(self, ccy):
json = self.get_json('api.therocktrading.com',
'/v1/funds/BTCEUR/ticker')
return {'EUR': Decimal(json['last'])}
class Unocoin(ExchangeBase):