Cannot fetch current time candle data in the response from Historical Intraday API

To address the issue with the historical candle API (https://api-v2.upstox.com/historical-candle/intraday/NSE_INDEX%7CNifty 50/1minute ), the response does not provide the current time candle. I cannot get the current time data candle. For instance, if the request is made at 10:00:30 am, the latest candle in the response corresponds to either one or two minutes ago, not the 10:00 am candle. Please resolve this issue as soon as possible

1 Like

We suggest utilizing real-time WebSocket to access the most recent two candles in the intraday timeframe. Specifically, for 1-minute- and 30-minute intervals, we provide two candles, including the current and previous ones.

We have implemented caching for the intraday REST API to improve performance. We are examining the possibility of optimizing the cacheā€™s current Time To Live (TTL).