Added new brazillian exchange to exchange rates plugin: Walltime.
This commit is contained in:
@@ -897,5 +897,8 @@
|
|||||||
],
|
],
|
||||||
"Biscoint": [
|
"Biscoint": [
|
||||||
"BRL"
|
"BRL"
|
||||||
|
],
|
||||||
|
"Walltime": [
|
||||||
|
"BRL"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -411,6 +411,14 @@ class Biscoint(ExchangeBase):
|
|||||||
return {'BRL': Decimal(json['data']['last'])}
|
return {'BRL': Decimal(json['data']['last'])}
|
||||||
|
|
||||||
|
|
||||||
|
class Walltime(ExchangeBase):
|
||||||
|
|
||||||
|
async def get_rates(self, ccy):
|
||||||
|
json = await self.get_json('s3.amazonaws.com',
|
||||||
|
'/data-production-walltime-info/production/dynamic/walltime-info.json')
|
||||||
|
return {'BRL': Decimal(json['BRL_XBT']['last_inexact'])}
|
||||||
|
|
||||||
|
|
||||||
def dictinvert(d):
|
def dictinvert(d):
|
||||||
inv = {}
|
inv = {}
|
||||||
for k, vlist in d.items():
|
for k, vlist in d.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user