You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A very nice benefit is, we can bypass the 8004 char limit in the URI for subscriptions which makes is_websocket_length_valid() obsolete and makes also the request #19 (virtual stream interface) unnecessary!
oliver-zehentleitner
changed the title
*** IMPORTANT TO KNOW *** Changes in release 1.10.0
*** IMPORTANT TO KNOW: Changes in release 1.10.0 ***
Feb 23, 2020
Hello!
In the releases 1.10.0 i added subscriptions through websocket.send() which enables the lib to subscribe on demand: https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#live-subscribingunsubscribing-to-streams
In all versions of this lib <= 1.9.x the subscriptions got handled within create_stream() via the URI on websocket.connect(), to change markets or channels it was necessary to use replace_stream(). Now its possible to subscribe and unsubscribe on demand via subscribe_to_stream() and unsubscribe_from_stream().
A very nice benefit is, we can bypass the 8004 char limit in the URI for subscriptions which makes is_websocket_length_valid() obsolete and makes also the request #19 (virtual stream interface) unnecessary!
Beginning with 1.10.0 is_websocket_length_valid() will always return
True
!The most important part now
As a result of this changes the endpoints are answering with a new message that looks like:
Its possible that this is crashing your script ...
Have fun!
Best regards,
Oliver
Edit 2020-04-28:
There is a new limit of 1024 subscriptions per stream: #45 (comment)
The text was updated successfully, but these errors were encountered: