Fixing exchanges error
This commit is contained in:
parent
1a111b98d4
commit
cdaf874228
@ -262,7 +262,6 @@ class CoinDesk(ExchangeBase):
|
|||||||
json = await self.get_json('api.coindesk.com',
|
json = await self.get_json('api.coindesk.com',
|
||||||
'/v1/bpi/currentprice/%s.json' % ccy)
|
'/v1/bpi/currentprice/%s.json' % ccy)
|
||||||
result = {ccy: Decimal(json['bpi'][ccy]['rate_float'])}
|
result = {ccy: Decimal(json['bpi'][ccy]['rate_float'])}
|
||||||
print(result)
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def history_starts(self):
|
def history_starts(self):
|
||||||
@ -280,6 +279,7 @@ class CoinDesk(ExchangeBase):
|
|||||||
json = await self.get_json('api.coindesk.com', query)
|
json = await self.get_json('api.coindesk.com', query)
|
||||||
return json['bpi']
|
return json['bpi']
|
||||||
|
|
||||||
|
|
||||||
class CoinMarketcap(ExchangeBase):
|
class CoinMarketcap(ExchangeBase):
|
||||||
|
|
||||||
async def get_rates(self, ccy):
|
async def get_rates(self, ccy):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user