Open nielskool opened 5 years ago
Thanks for your help @nielskool can you check if this is now fixed in v2.1.0
it is now always at market/allTickers but that is only the case when symbol=None.
so move tick_path = 'market/allTickers' into the if and else: tick_path = 'market/orderbook/level1'
it is now always at market/allTickers but that is only the case when symbol=None.
so move tick_path = 'market/allTickers' into the if and else: tick_path = 'market/orderbook/level1'
I can confirm this. For a quick fix, i changed the client library to:
data = {}
tick_path = 'market/allTickers'
if symbol is not None:
tick_path = 'market/orderbook/level1'
data = {
'symbol': symbol
}
return self._get(tick_path, False, data=data)
This issue is still existing, the patch from LeKlex works, I'm going to submit a pull request so this functionality is no longer broken. PR incoming...
It looks like someone else tried to fix it, but missed a line and made the opposite functionality broken (aka, made #54 happen again). The PR above should fix it, blatantly copied from @LeKlex above, so no credit for me really.
The function get_ticker has the optional variable symbol but doesnt work when symbol is not set.
might chance to:??
source: https://docs.kucoin.com/#get-ticker