-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Unsubscribe/Subscribe to stream #315
Comments
this is the expected behavior for me, since the websocket uri in our method must always contain at least one valid subscription. |
We build the URI for a "raw stream": https://binance-docs.github.io/apidocs/spot/en/#websocket-market-streams If you want to update this a PR is welcome. |
Any idea how to handle this correctly? Use a combined stream? Do not create a stream if there are no tickers? |
In itself, it is not intended that ubwa can create an empty stream. I also think that If you want to use the full potential of the Binance API and create a combined stream instead of raw, then check if an empty stream is allowed. for that method i'm not sure... I personally would be reluctant to attack this because it is now copatible with all APIs even binancechain. It's a lot of work and needs a lot of testing and the surplus is minimal. |
Version of this library.
1.42.0
Solution to Issue cannot be found in the documentation or other Issues and also occurs in the latest version of this library.
Hardware?
Local server/workstation
Operating System?
Linux
Python version?
Python3.7
Installed packages
Logging output
https://gist.github.com/dima-dmytruk23/0e7500d94292a3889e3eecfa769385f8
Processing method?
stream_buffer
Used endpoint?
concerns all
Issue
I initially have a stream that is subscribed to futures (at the time of launch, this is an empty list). This list is filled/changed by messages from the message broker. I was thinking of doing this with
But for some reason after that - I do not receive data from the Binance. As far as I can see, this only happens if I initially have an empty list of tickers.
The text was updated successfully, but these errors were encountered: