Browse Source

Coinsecure exchange added

283
Anwesh 9 years ago
parent
commit
0ece74eea6
  1. 7
      plugins/exchange_rate/exchange_rate.py

7
plugins/exchange_rate/exchange_rate.py

@ -209,7 +209,12 @@ class CoinDesk(ExchangeBase):
% (start, end))
json = self.get_json('api.coindesk.com', query)
return json['bpi']
class Coinsecure(ExchangeBase):
def get_rates(self, ccy):
json = self.get_json('api.coinsecure.in', '/v0/noauth/lasttrade')
return {'INR': Decimal(json['result'][0]['lasttrade'][0][bid][0][rate] / 100.0 )}
class itBit(ExchangeBase):
def get_rates(self, ccy):
ccys = ['USD', 'EUR', 'SGD']

Loading…
Cancel
Save