Brazilian Bitcoin index source included.
Added Brazilian Bitcoin Index from Cointrader Monitor (https://cointradermonitor.com/api/pbb/v1/ticker) as a "BRL" Fiat source. The index is calculated from the last price and volume from 30 brazilian exchanges. It is a well-known price index used by bitcoin brazilian users. More information at https://cointradermonitor.com/
This commit is contained in:
committed by
GitHub
parent
52f8aafb60
commit
c67eef6e40
@@ -793,6 +793,9 @@
|
|||||||
"ZRX",
|
"ZRX",
|
||||||
"ZWL"
|
"ZWL"
|
||||||
],
|
],
|
||||||
|
"CointraderMonitor": [
|
||||||
|
"BRL"
|
||||||
|
],
|
||||||
"Kraken": [
|
"Kraken": [
|
||||||
"CAD",
|
"CAD",
|
||||||
"EUR",
|
"EUR",
|
||||||
|
|||||||
@@ -315,6 +315,13 @@ class CoinGecko(ExchangeBase):
|
|||||||
for h in history['prices']])
|
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):
|
class itBit(ExchangeBase):
|
||||||
|
|
||||||
async def get_rates(self, ccy):
|
async def get_rates(self, ccy):
|
||||||
|
|||||||
Reference in New Issue
Block a user