sammchardy / python-kucoin

Kucoin REST and Websocket API python implementation
https://python-kucoin.readthedocs.io/en/latest/
MIT License
350 stars 148 forks source link

Private webscoket connection never connects #89

Open maxbot1-bot opened 3 years ago

maxbot1-bot commented 3 years ago

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

srsgi commented 2 years ago

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

srsgi commented 2 years ago

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