Browse Source
Merge pull request #6410 from cointradermonitor/cointradermonitor-new-brazilian-index
Brazilian Bitcoin index source included.
bip39-recovery
ThomasV
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
10 additions and
0 deletions
-
electrum/currencies.json
-
electrum/exchange_rate.py
|
|
@ -793,6 +793,9 @@ |
|
|
|
"ZRX", |
|
|
|
"ZWL" |
|
|
|
], |
|
|
|
"CointraderMonitor": [ |
|
|
|
"BRL" |
|
|
|
], |
|
|
|
"Kraken": [ |
|
|
|
"CAD", |
|
|
|
"EUR", |
|
|
|
|
|
@ -315,6 +315,13 @@ class CoinGecko(ExchangeBase): |
|
|
|
for h in history['prices']]) |
|
|
|
|
|
|
|
|
|
|
|
class CointraderMonitor(ExchangeBase): |
|
|
|
|
|
|
|
async def get_rates(self, ccy): |
|
|
|
json = await self.get_json('cointradermonitor.com', '/api/pbb/v1/ticker') |
|
|
|
return {'BRL': Decimal(json['last'])} |
|
|
|
|
|
|
|
|
|
|
|
class itBit(ExchangeBase): |
|
|
|
|
|
|
|
async def get_rates(self, ccy): |
|
|
|