-
Notifications
You must be signed in to change notification settings - Fork 16
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 #25
Comments
I'm not sure but from what I understand of the documentation the '/account/balance' stream will only shows changes of your balance. If you don't make any transaction it's normal that the streams shows nothing |
I cant even get mine to connect when using private=True I end up with |
Default ping_interval is 60 seconds in This is because the socket closes when it doesn't send or receive data in 60 seconds. So if the market you have subscribed to has no changes in 60 seconds, then there is no incoming data from server and thus the socket closes. Reducing the ping_interval solves prevents this from happening. (It's useful to note that sockets only send data when the price changes!) |
Thank you for the suggestion @keivanipchihagh . This is my code:
When I use the code above, I run into this error every short while:
When I change the sleep to
Any idea how this can be solved? |
I have the same issue. Any suggestions? |
hi,
im using the following bit of code
async def deal_msg(msg):
print (msg)
ws_client = await KucoinWsClient.create(None, client, deal_msg, private=True)
await ws_client.subscribe('/account/balance')
while True:
await asyncio.sleep(5)
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'
Thanks a lot for your help
The text was updated successfully, but these errors were encountered: