๐Ÿ“ฃ [BUG REPORT] UNUSUAL BEHAVIOR DURING MARKET HOURS โ€” MISSING SYMBOL DATA AFTER SUBSCRIPTION

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:

    1. โœ… I programmatically loaded the latest trade_log_*.csv.

    2. โœ… Filtered all rows after 12:02:00.

    3. โœ… Counted unique symbols receiving data.

    4. โŒ 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:

  1. ๐Ÿ”Ž Review the WebSocket delivery guarantee for large symbol lists?

  2. ๐Ÿ“ฌ Ensure data delivery for all subscribed symbols, especially F&O?

  3. ๐Ÿ› ๏ธ Consider emitting confirmation or error per symbol subscription (like a subscription acknowledgment)?


๐Ÿ“Ž Additional Info

  • Tools: Python, Dash, custom resubscription + monitor logic

  • Date of issue: 19/06/2025

  • Time of incident: Around 12:02 PM IST

  • Workspace stable (no network or CPU lag)

9 replies