Wrong Data via Websocket

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.

Hey @archit.ilttyjpl

Can we please get the raw websocket logs to check the same

This is raw websocket data only, the code is directly printing the message without any calculations or command.

Hey @archit.ilttyjpl

Could you please use our sample code once and monitor for a couple of days to see if this is repeating and if there is any difference in values .

Facing same issues time and again

I have observed the behaviour in this way:

Subscribe 100 symbols → then unsubscribe 2-3 → subscribe some more

If there is connection drop, after auto-reconnect many tickers will be out of order.

looks like the data structure they are using is messing up their positional index.

@archit.ilttyjpl is their websocket issue resolved and is it more stable now?