I’ve built a custom live market dashboard using Fyers WebSocket (SymbolUpdate + DepthUpdate) for full F&O symbol coverage (~220+ stocks). The system tracks and logs tick-level trade and depth data continuously during market hours, with resubscription logic in place for reconnects and symbol silence monitoring.
Observed Issue
After running the system at 12:02 PM, I noticed that only 180 out of 251 subscribed symbols were receiving trade data, despite:
Full WebSocket connection success (on_connect triggered)
Full symbol list resubscribed via fy_socket.subscribe(...)
F&O symbols involved (which are highly active during the day)
71 symbols received no trade updates post 12:02 PM, even after full restart
Diagnosis
To confirm whether the problem was on my end:
I programmatically loaded the latest trade_log_*.csv. - Filtered all rows after 12:02:00. - Counted unique symbols receiving data. - 71 out of 251 subscribed symbols were missing.
This proves that:
The client-side subscription was sent and logged. - No trade message was received for 71 active F&O symbols. - WebSocket remained stable — no disconnects, no errors. ### Technical Setup Summary fy_socket.subscribe(symbols, data_type="SymbolUpdate") - Reconnect logic and re-subscription chunks implemented - Symbol silence monitor runs every 10s with 30s timeout - No data ever arrived for ~70 symbols after successful subscribe
Hypothesis
This behavior points to a possible upstream issue in Fyers’ WebSocket back-end, where:
Some subscribed symbols fail to deliver live ticks despite acknowledgment of subscription.
This occurs without triggering any error, making it hard to detect without a watchdog.
Recommendation / Request
Could the Fyers team:
Review the WebSocket delivery guarantee for large symbol lists?
Ensure data delivery for all subscribed symbols, especially F&O?
Consider emitting confirmation or error per symbol subscription (like a subscription acknowledgment)?
so from today’s session i came to know that the problem arise only on reconnect if i disconnect the net and reconnect the net again to make the fyers websocket reconnects then there comes inconsistency in data from some symbols meaning some symbols became totally stales. Some time 80 symbols are missing some time 4 symbols are missing some time 30 are missing. Let me find and gather more information for a bullet proof solution
Though i have one right now but it will take to reconnect those missed symbols minimum of 1 minutes as it takes last 1 minute data to capture whose symbol data are missing and from that list make those subscribe again
but i want a solution within 10 second window
is there a bug only persists when reconnects happen to subscribe more than 200 symbols at one go
or if i subscribe 50 or something like that in a batch or chunk of symbols in 3 to 5 go in recconnects is this make fyers bottleneck
Hi Chana Ghosh !
I see you are very well using AI for scripting
would you be interested in discussing ways to work and create strategies with AI
I am someone who is actively using agents for analysis and Aplha’s finding! if you are doing the same lets have a talk !
@demochana-wlg if you searched the Forum, you can see this issue is over 6-8 months old with data websocket. Multiple people have reported it and there is no fix from the dev team.
Even the stability of the websocket is poor, with frequent drops.
i don’t have an websocket issue till date
but the issue i was getting was only after reconnect
i was doing everything i could do but i get that after reconnect the problem is like persistent
ok may be as i only get first 2 hour of market so reconnect issue may be i did not get it
like everyday i have 1 day issue in last 1 month of that reconnect
i don’t konw about you but just for a normal suggestion you can use lan port rather than wifi
i have more than one of everything, fibre broadbands, laptops, n/w card, data vendor, different brokers websocket etc.
it is Fyers issue only after testing everything. Their websocket client library could be culprit if not the server.
ok then the problem really is indeed from their end
and after subscription we don’t ever know if the scripts have actually subscribed or not
they should look into this matter to get a feedback about susbcription we have to manually do that to track if some scripts is not receiving data or not at all