mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
exchange_rate: add Bylls BTC/CAD rates
This commit is contained in:
parent
bdb6d65cf7
commit
a9c13d6641
2 changed files with 10 additions and 0 deletions
|
@ -386,6 +386,9 @@
|
||||||
"TWD",
|
"TWD",
|
||||||
"USD"
|
"USD"
|
||||||
],
|
],
|
||||||
|
"Bylls": [
|
||||||
|
"CAD"
|
||||||
|
],
|
||||||
"CoinCap": [
|
"CoinCap": [
|
||||||
"USD"
|
"USD"
|
||||||
],
|
],
|
||||||
|
|
|
@ -238,6 +238,13 @@ class BlockchainInfo(ExchangeBase):
|
||||||
return dict([(r, Decimal(json[r]['15m'])) for r in json])
|
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):
|
class Coinbase(ExchangeBase):
|
||||||
|
|
||||||
async def get_rates(self, ccy):
|
async def get_rates(self, ccy):
|
||||||
|
|
Loading…
Add table
Reference in a new issue