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

Can't receive any data from websocket - Only "sleeping to keep loop open" #108

Open
jejebelfort opened this issue Jan 2, 2022 · 3 comments

Comments

@jejebelfort
Copy link

Hello,

When using the sample code in the wiki:
https://python-kucoin.readthedocs.io/en/latest/websockets.html

I keep on getting "sleeping to keep loop open" while in debug mode (I am using PyCharm).

Digging into the code, I also realized that at this stage of the code (res['instanceServers'][0]['endpoint']):
https://github.com/sammchardy/python-kucoin/blob/develop/kucoin/client.py#L183

the enpoint is
wss://ws-api.kucoin.com/endpoint

while according from Kucoin documentation it should be:
wss://push1-v2.kucoin.com/endpoint

Is this expected?

I forced the code to change this but it doesn't help receiving any data either...

How long am I supposed to wait before receiving any data from the websocket?

Thanks

@pb360
Copy link

pb360 commented Feb 21, 2022

also having this issue, if you figured it out please report back

@pb360
Copy link

pb360 commented Feb 21, 2022

@gayjer @jejebelfort
i found this https://github.com/Kucoin/kucoin-python-sdk which seems to be pretty similar from kucoin themselves. i got it working no problem

@jejebelfort
Copy link
Author

@pb360 Thanks, will give it a try!

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