mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
Merge pull request #1577 from kanishkablack/master
Updated Coinsecure Api
This commit is contained in:
commit
fbdfb45dd1
1 changed files with 8 additions and 3 deletions
|
@ -212,8 +212,13 @@ class CoinDesk(ExchangeBase):
|
||||||
|
|
||||||
class Coinsecure(ExchangeBase):
|
class Coinsecure(ExchangeBase):
|
||||||
def get_rates(self, ccy):
|
def get_rates(self, ccy):
|
||||||
json = self.get_json('api.coinsecure.in', '/v0/noauth/lasttrade')
|
json = self.get_json('api.coinsecure.in', '/v0/noauth/newticker')
|
||||||
return {'INR': Decimal(json['result'][0]['lasttrade'][0][bid][0][rate] / 100.0 )}
|
return {'INR': Decimal(json['lastprice'] / 100.0 )}
|
||||||
|
|
||||||
|
class Unocoin(ExchangeBase):
|
||||||
|
def get_rates(self, ccy):
|
||||||
|
json = self.get_json('www.unocoin.com', 'trade?buy')
|
||||||
|
return {'INR': Decimal(json)}
|
||||||
|
|
||||||
class itBit(ExchangeBase):
|
class itBit(ExchangeBase):
|
||||||
def get_rates(self, ccy):
|
def get_rates(self, ccy):
|
||||||
|
|
Loading…
Add table
Reference in a new issue