Hi @Neelabha_Samadder
We have reviewed your case and observed that you are receiving live candles (the previous minute candle) from the Intraday API.
Please note that the Intraday API is served through a CDN layer with caching enabled for approximately 30 seconds. This caching is intentionally implemented to:
- Reduce overall latency for users across different geographies
- Handle high traffic efficiently during market hours
- Protect backend systems from excessive load
- Ensure better availability and stability of the API
Due to this CDN-level caching, the last candle returned by the Intraday API may sometimes be slightly outdated or inaccurate. However, the second-last candle (previous minute) is 100% accurate and matches the Historical API responses. There is no further reconciliation performed on intraday candles prior to the last minute.
If your use case specifically requires the latest minute candle, we recommend using one of the following options:
-
Market Quote OHLC v3 API, which provides both live and previous minute candles:
OHLC Quotes V3 | Upstox Developer API -
Market Data Feed WebSocket, which streams real-time OHLC data:
Market Data Feed V3 | Upstox Developer API
For real-time and latency-sensitive use cases, we strongly recommend using the WebSocket approach. The WebSocket-based approach is also used to serve Upstox customers directly, making it highly scalable and reliable for live market data consumption.
You may also refer to the following previous community discussions for additional context:
- Intraday Historical API is not provide data for specifc stock - RECLTD - #10 by Pradeep_Jaiswar
- Any Limit of IntraDay Candle Data - #2 by Pradeep_Jaiswar
Thanks!