-
Notifications
You must be signed in to change notification settings - Fork 305
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
Support for Multiple Streams With Config #196
Comments
After doing some research - I don't think Binance limits connections per IP(I could be wrong). I should be fine opening a websocket for each symbol. Probably not the most efficient way to do it as It most certainly adds overhead but at least it works. |
Answered my own question.It's pretty simple but not very intuitive. If you reference the Binance.us Docs they say multiple streams can be subscribed to by combining the "Stream Name". For example if you want the trade stream for BTCUSD and ETHUSD you would use the path EXAMPLE:
|
Reopened for discussionPerhaps there's a cleaner way to approach this. I could simply update the docs but maybe adding a function |
Can't seem to figure out how to get multiple steams with a config.
I tried using a single websocket and looping over an array of symbols to do the connection. I end up only getting data for a single symbol. I'm new to rust so maybe I'm just missing something.
Open a websocket for each symbol?
I will comb through your implementation of "multiple streams" and see If I can figure it out but In the meantime if you see this and have a suggestion let me know.
Thanks
The text was updated successfully, but these errors were encountered: