1
0

Merge pull request #5211 from FrancisPouliot/master

Add Bylls BTC/CAD rates
This commit is contained in:
ghost43
2019-03-27 19:03:49 +01:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -386,6 +386,9 @@
"TWD",
"USD"
],
"Bylls": [
"CAD"
],
"CoinCap": [
"USD"
],

View File

@@ -238,6 +238,13 @@ class BlockchainInfo(ExchangeBase):
return dict([(r, Decimal(json[r]['15m'])) for r in json])
class Bylls(ExchangeBase):
async def get_rates(self, ccy):
json = await self.get_json('bylls.com', '/api/price?from_currency=BTC&to_currency=CAD')
return {'CAD': Decimal(json['public_price']['to_price'])}
class Coinbase(ExchangeBase):
async def get_rates(self, ccy):