fixed OKX not subscribing
This commit is contained in:
parent
e6d4578807
commit
595dbcdb54
|
|
@ -207,6 +207,8 @@ class okx_earn:
|
||||||
Returns the 24hs average lending rate
|
Returns the 24hs average lending rate
|
||||||
'''
|
'''
|
||||||
rate = self.earning_api.get_public_borrow_info(coin)
|
rate = self.earning_api.get_public_borrow_info(coin)
|
||||||
|
if rate["data"][0]["avgRate"]=='0':
|
||||||
|
return str(rate["data"][0]["estRate"])
|
||||||
return str(rate["data"][0]["avgRate"])
|
return str(rate["data"][0]["avgRate"])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue