Websocket Connection Being reset and Mode Being Changed from 'Full' to 'Quote'

subhash494
I fetch data using websocket data mode = 'full' , however today after about 10-15 seconds, the connection is being reset, and mode is being changed to 'quote'.

When I restart the connection, I get 'full' quotes, and again in 15 seconds, connection is reset and quotes with mode='quote' are being sent
  • SRIJAN
    SRIJAN edited June 2022
    This can only happen if you set mode outside on_connect callback. As the default websocket mode is 'quote'.

    So, after reconnection,the first tick will be sent in 'quote' mode and the subsequent ticks will be sent as per your set mode.

    However,if you set mode inside on_connect,then all the ticks (even the first tick) will be sent in your subscribed mode.
Sign In or Register to comment.