|
@ -255,9 +255,8 @@ class Winkdex(ExchangeBase): |
|
|
|
|
|
|
|
|
class MercadoBitcoin(ExchangeBase): |
|
|
class MercadoBitcoin(ExchangeBase): |
|
|
def get_rates(self,ccy): |
|
|
def get_rates(self,ccy): |
|
|
json = self.get_json('mercadobitcoin.net', |
|
|
json = requests.get('http://api.bitvalor.com/v1/ticker.json').json() |
|
|
"/api/ticker/ticker_bitcoin") |
|
|
return {'BRL': Decimal(json['ticker_1h']['exchanges']['MBT']['last'])} |
|
|
return {'BRL': Decimal(json['ticker']['last'])} |
|
|
|
|
|
|
|
|
|
|
|
def history_ccys(self): |
|
|
def history_ccys(self): |
|
|
return ['BRL'] |
|
|
return ['BRL'] |
|
@ -271,6 +270,31 @@ class Bitcointoyou(ExchangeBase): |
|
|
def history_ccys(self): |
|
|
def history_ccys(self): |
|
|
return ['BRL'] |
|
|
return ['BRL'] |
|
|
|
|
|
|
|
|
|
|
|
class Bitvalor(ExchangeBase): |
|
|
|
|
|
def get_rates(self,ccy): |
|
|
|
|
|
json = requests.get('http://api.bitvalor.com/v1/ticker.json').json() |
|
|
|
|
|
return {'BRL': Decimal(json['ticker_1h']['total']['last'])} |
|
|
|
|
|
|
|
|
|
|
|
def history_ccys(self): |
|
|
|
|
|
return ['BRL'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Foxbit(ExchangeBase): |
|
|
|
|
|
def get_rates(self,ccy): |
|
|
|
|
|
json = requests.get('http://api.bitvalor.com/v1/ticker.json').json() |
|
|
|
|
|
return {'BRL': Decimal(json['ticker_1h']['exchanges']['FOX']['last'])} |
|
|
|
|
|
|
|
|
|
|
|
def history_ccys(self): |
|
|
|
|
|
return ['BRL'] |
|
|
|
|
|
|
|
|
|
|
|
class NegocieCoins(ExchangeBase): |
|
|
|
|
|
def get_rates(self,ccy): |
|
|
|
|
|
json = requests.get('http://api.bitvalor.com/v1/ticker.json').json() |
|
|
|
|
|
return {'BRL': Decimal(json['ticker_1h']['exchanges']['NEG']['last'])} |
|
|
|
|
|
|
|
|
|
|
|
def history_ccys(self): |
|
|
|
|
|
return ['BRL'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def dictinvert(d): |
|
|
def dictinvert(d): |
|
|
inv = {} |
|
|
inv = {} |
|
|