Intraday data latency - APIs

Hello team,

I am using the Intraday API (Intraday Candle Data | Upstox Developer API) for fetching the latest 1 min candle data for my required instrument.

I’ve noticed some latency issue. For example, when I run the API at 10:30:01, it does not include the 10:29 candle data. I’ve tested with various seconds, and found that there is no consistency in the results. At times I am getting the latest 1min candle data at around :05 (10:30:05) and at times even after :30 (10:30:30) it did not work.

Since, this is not reliable, I am facing issue while running my algorithm. What is the expected latency? Is this something that is a known behavior?

If that is the case, what is the best way forward to get the latest 1min candle data immediately after it’s available?

not sure if this could be something am facing right now, the charts are started slowing down(lagging) i noticed a huge delay of 10 minute… I believe this started last week. unfortunately could not upload a video… here you can see a five minute delay… I reduced the layout to only two scrip and still facing problem… Internet is fine, system memory also fine, no softwares running and just chrome browser with 4 tabs.

please note if i refresh the tab its all fine for like few minutes and then it starts lagging

I used to play with this API for backtest and auto trading bot but I observed that the delay was significate around 2 mins or a min as per my knowledge. I ended up not using it. so switch over the websocket connection.