python-kucoin icon indicating copy to clipboard operation
python-kucoin copied to clipboard

Private webscoket connection never connects

Open maxbot1-bot opened this issue 3 years ago • 2 comments

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

maxbot1-bot avatar Jun 06 '21 09:06 maxbot1-bot

+1 having the same issue. Have you found any solution?

srsgi avatar Aug 22 '21 04:08 srsgi

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

srsgi avatar Aug 22 '21 05:08 srsgi