Take a look at the below example, it seems the candle stop generating after 1:01 PM, Could you please take a look, it seems the websockets are not reliable?
2025-10-10 15:25:15 INFO Bar Generated for HINDUNILVR of 5m :
2025-10-10 15:25:15 INFO Check the end time:2025-10-10T13:00+05:30[Asia/Kolkata]
2025-10-10 15:25:15 INFO after begin time map:[{begin time: 2025-10-10T13:00+05:30[Asia/Kolkata], close price: 1164.100000, open price: 1164.000000, low price: 1163.900000, high price: 1164.400000, volume: 732.000000}, {begin time: 2025-10-10T13:01+05:30[Asia/Kolkata], close price: 1163.800000, open price: 1164.100000, low price: 1163.100000, high price: 1164.400000, volume: 2815.000000}]
2025-10-10 15:25:15 INFO Bar Generated for JSWSTEEL of 5m :
2025-10-10 15:25:15 INFO Check the end time:2025-10-10T13:00+05:30[Asia/Kolkata]
2025-10-10 15:25:15 INFO after begin time map:[{begin time: 2025-10-10T13:00+05:30[Asia/Kolkata], close price: 94.060000, open price: 94.000000, low price: 93.990000, high price: 94.090000, volume: 1250.000000}]
could you please check why the websockets are unreliable or the underlying symbol didn’t have any trade, if it didn’t have any trade send same price to to OHLC and volume as 0, simply removing candlesticks are not good, any thoughts.
Hi @athma_prathisti
The WebSockets are reliable. The reason why no candle updates are provided when there are no trades is to optimize server performance. Continuously sending updates for instruments that haven’t traded—such as far OTM contracts or illiquid instruments—would significantly increase the server load. Therefore, candles are only updated when an actual trade occurs.
Thanks!
But Everywhere, if trade doesn’t happen they send same price for OHLC and volume as 0, it is not unique to Upstox, When we subscribe to it we already know these many stocks will come, It is a hard sell to me, if symbol is not trading few candles automatically infer it, how do we know it is not due to latency in websockets or it is due to trade didn’t happen.
their websocket are best among industry i have tried them but their ltp data are horrible. do check ltp of index halt for sometimes and then again comesback , no replied yet else i have shown to you
How you are so confident about this claim of they being best in the industry, how many you have tried, though i appreciate the previous ohlc 1min candle that they provide.
yes 1 min ohlc is best rest i donot know i can only which i have tested like i have tested their ltp its worst via rest api


