URI: 
       tMerge pull request #6405 from itxtoledo/feature/more-price-sources - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 89a609b1fa6a0cf1fbfd93bc24e6b21ff6b9129c
   DIR parent 8703d10d65fff64408ca28e59d302db6038d4761
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed, 29 Jul 2020 18:00:37 +0200
       
       Merge pull request #6405 from itxtoledo/feature/more-price-sources
       
       Feature: more price sources for BRL and remove scam broker
       Diffstat:
         M electrum/currencies.json            |      11 +++++++----
         M electrum/exchange_rate.py           |      20 ++++++++++++++------
       
       2 files changed, 21 insertions(+), 10 deletions(-)
       ---
   DIR diff --git a/electrum/currencies.json b/electrum/currencies.json
       t@@ -882,14 +882,17 @@
            "MercadoBitcoin": [
                "BRL"
            ],
       -    "NegocieCoins": [
       -        "BRL"
       -    ],
            "TheRockTrading": [
                "EUR"
            ],
            "Zaif": [
                "JPY"
            ],
       -    "itBit": []
       +    "itBit": [],
       +    "Bitragem": [
       +        "BRL"
       +    ],
       +    "Biscoint": [
       +        "BRL"
       +    ]
        }
   DIR diff --git a/electrum/exchange_rate.py b/electrum/exchange_rate.py
       t@@ -352,12 +352,6 @@ class MercadoBitcoin(ExchangeBase):
                return {'BRL': Decimal(json['ticker_1h']['exchanges']['MBT']['last'])}
        
        
       -class NegocieCoins(ExchangeBase):
       -
       -    async def get_rates(self,ccy):
       -        json = await self.get_json('api.bitvalor.com', '/v1/ticker.json')
       -        return {'BRL': Decimal(json['ticker_1h']['exchanges']['NEG']['last'])}
       -
        class TheRockTrading(ExchangeBase):
        
            async def get_rates(self, ccy):
       t@@ -389,6 +383,20 @@ class Zaif(ExchangeBase):
                return {'JPY': Decimal(json['last_price'])}
        
        
       +class Bitragem(ExchangeBase):
       +
       +    async def get_rates(self,ccy):
       +        json = await self.get_json('api.bitragem.com', '/v1/index?asset=BTC&market=BRL')
       +        return {'BRL': Decimal(json['response']['index'])}
       +
       +
       +class Biscoint(ExchangeBase):
       +
       +    async def get_rates(self,ccy):
       +        json = await self.get_json('api.biscoint.io', '/v1/ticker?base=BTC&quote=BRL')
       +        return {'BRL': Decimal(json['data']['last'])}
       +
       +
        def dictinvert(d):
            inv = {}
            for k, vlist in d.items():