Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private webscoket connection never connects #89

Open
maxbot1-bot opened this issue Jun 6, 2021 · 2 comments
Open

Private webscoket connection never connects #89

maxbot1-bot opened this issue Jun 6, 2021 · 2 comments

Comments

@maxbot1-bot
Copy link

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
Copy link

srsgi commented Aug 22, 2021

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

@srsgi
Copy link

srsgi commented Aug 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants