For accessing historical data (before today), use the Historical API available at: Upstox Historical API Documentation
For intraday data (current trading day), refer to the Intraday API at: Upstox Intraday API Documentation
However, be aware that there may be a delay in the last candle for the intraday API because it is cached on a CDN to enhance performance. For accessing new, real-time candles, it is recommended to use the websocket, which provides data on the current candle and the one preceding it
Together, these elements contribute to the comprehensive setup of data for any symbol. The candle source for our app and the Upstox API are identical. Ensure the historical APIs are stable.
I hope the information provided is helpful.