I am testing the websockets with multiple subscription of real-time symbols and was facing this issue from last 30 days. Initially, I was convinced there might be some problem with my code, but after intense testing for 30 days, I’m sure there is some issue in the websocket after subscribing multiple symbols.
2024-10-11 09:50:54 - root - DEBUG - Message received: {‘ltp’: 123.8, ‘vol_traded_today’: 6945825, ‘last_traded_time’: 1728620453, ‘exch_feed_time’: 1728620453, ‘bid_size’: 225, ‘ask_size’: 525, ‘bid_price’: 122.95, ‘ask_price’: 123.25, ‘last_traded_qty’: 25, ‘tot_buy_qty’: 177625, ‘tot_sell_qty’: 369250, ‘avg_trade_price’: 115.92, ‘low_price’: 102.2, ‘high_price’: 136.4, ‘lower_ckt’: 0, ‘upper_ckt’: 0, ‘open_price’: 136.4, ‘prev_close_price’: 139.25, ‘type’: ‘sf’, ‘symbol’: ‘NSE:BANKNIFTY24O1651700CE’, ‘ch’: -15.45, ‘chp’: -11.0952}
This is a sample message recorded today, directly coming from websocket, were the symbol is banknifty option having premium above 250 and the socket giving the data for a nifty symbol subscribed parallely. Kindly check and revert on the issue marked here.