tMerge pull request #1570 from kanishkablack/master - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c3bd9226f2399f97bbfbeaae2b53794f1cc76fa5 DIR parent b6242a453b8c34941e19ee64e09c9c262f3b75a9 HTML Author: Neil <kyuupichan@gmail.com> Date: Sat, 5 Dec 2015 10:57:50 +0900 Merge pull request #1570 from kanishkablack/master Coinsecure exchange added Diffstat: M plugins/exchange_rate/exchange_rat… | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- DIR diff --git a/plugins/exchange_rate/exchange_rate.py b/plugins/exchange_rate/exchange_rate.py t@@ -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']