python-kucoin
python-kucoin copied to clipboard
Private webscoket connection never connects
hi,
I try to run the following bit of code
client = Client(api_key, api_secret, api_passphrase, is_sandbox=True) ksm_private = await KucoinSocketManager.create(loop, client, handle_evt, private=True)
Account balance - must be authenticated
await ksm_private.subscribe('/account/balance') while True: print("sleeping to keep loop open") await asyncio.sleep(20, loop=loop)
The code just goes into a loop at does nothing. I am not receiving any errors stating that the topic is bad I can use the REST api just fine to see my account balance I can also use the socket connection for market data with private='False'
@sammchardy what do you mean when you say 'must be authenticated'?
Thanks a lot for your help
+1 having the same issue. Have you found any solution?
This is working fine when i removed ip restrictions from my api key. Have to look into why that is probably an error from my side. But yes I tested and this feature is working fine with api v2