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
Description of Bug
The example listed in docs/streaming.rst will not display any data because it is subscribing to nasdaq_book_subs but adding a handler for add_timesale_options_handler. Also recommend re-organizing the code to make it a bit easier to reconnect to the Websocket without re-adding handlers.
Expected Behavior
Expected example to add handler to: add_nasdaq_book_handler
I moved the add_handler call outside of read_stream to help users who want to reconnect to the stream if it fails. It gives them a little bit better base to start from. It also prevents a potential race condition where nasdaq_book_subs could send data faster than the handler could actually get registered.
Description of Bug
The example listed in docs/streaming.rst will not display any data because it is subscribing to nasdaq_book_subs but adding a handler for add_timesale_options_handler. Also recommend re-organizing the code to make it a bit easier to reconnect to the Websocket without re-adding handlers.
Expected Behavior
Expected example to add handler to: add_nasdaq_book_handler
Actual Behavior
No data is generated
The text was updated successfully, but these errors were encountered: