websocket : fs.subscribe is not returning control

Websocket: After subscribing to symbol , control is not getting returned to main program.

Is it possible to share a working code of websocket where subscribe and subscribes are getting called multiple times

This issue is for python library

I am also facing the same error , moreover when we keep run_backgroup=True , it is returing but with emtpy response.

I am also facing the same error , moreover when we keep run_backgroup=True , it is returing but with emtpy response.

Same issue pls help with proper documentation on using websocket

Is this resolved now @vikram_sri ? How can we run multiple strategies if the “fs.subscribe()” call is a blocking call.

@rahul_kumar3 Did you got the solution on websocket data return? As in my case its not returning data and console going into hung state

Hi Amit,
Please look at the code in the docs - https://myapi.fyers.in/docs#tag/Web-Socket

Hi This is a known limitation of the websocket API. Currently threads needs to be used for it. The new version of the web socket is currently being worked on and it should solve this issue.

Hi Vikram,

I have used the same code, but its not working as expected, I also raised this with team, can you please have a look?

https://community.fyers.inhttps://fyers.in/community/t/python-unable-to-strem-data-out-of-websocket/19261

Hi Vikram,
This is not working properly.
Do we need to try version 3?
pip install fyers-apiv3

Hi deekshith, Yes please do install the latest version of fyers - pip install fyers-apiv3