URI: 
       tMerge pull request #2122 from Marcdnd/master - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit fa26ac7e681d3bee7e64c7d018c5a8a38468c126
   DIR parent 6ad2e41e6c607f6e3154b661770f5335945d66b3
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Mon, 23 Jan 2017 11:32:47 +0100
       
       Merge pull request #2122 from Marcdnd/master
       
       Added BRL exchanges: Bitvalor, Foxbit, NegocieCoins
       Diffstat:
         M lib/exchange_rate.py                |      30 +++++++++++++++++++++++++++---
       
       1 file changed, 27 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/lib/exchange_rate.py b/lib/exchange_rate.py
       t@@ -255,9 +255,8 @@ class Winkdex(ExchangeBase):
        
        class MercadoBitcoin(ExchangeBase):
            def get_rates(self,ccy):
       -        json = self.get_json('mercadobitcoin.net',
       -                                "/api/ticker/ticker_bitcoin")
       -        return {'BRL': Decimal(json['ticker']['last'])}
       +        json = requests.get('http://api.bitvalor.com/v1/ticker.json').json()
       +        return {'BRL': Decimal(json['ticker_1h']['exchanges']['MBT']['last'])}
            
            def history_ccys(self):
                return ['BRL']
       t@@ -271,6 +270,31 @@ class Bitcointoyou(ExchangeBase):
            def history_ccys(self):
                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):
            inv = {}