Hi, for today (4th march 2025), for the following stocks (ECLERX, KARURVYSYA, NETWEB, NH, NUVAMA), i did not receive the 1st tick from the web socket. in some cases the ticks were delayed by 3-4 seconds even.
I have a logic on my end to calculate candles based on last_price and that has significantly changed because of the delay. Consider the following ticks I received first on my end
The 1st tick was received at 09:15:03 and as I result, I calculated the open price as LTP which is 195.21 and siginificantly differing from the actual open of 194.87. This happened for many stocks for me today.
Consider another case where the difference was huge
The first tick I received has LTP of 2569.95 where as the actual open was 2506.7. This forced my algorithm to take a complete decision altogether. Kindly explain why this difference happens
You may try fetching an open price instead of LTP as the open is determined in the premarket session. You may also refer to this similar discussion here.