Historical intraday candlechart data of a security(stock) of previous 5 years or more

Hello Team,
Thank you for building Upstox.

How can we access intraday candlechart data for past 5 years.
I am trying this
https://api.upstox.com/v2/historical-candle/NSE_INDEX%7CNifty%2050/1minute/2024-08-22/2019-08-22

But it always gives me from the beginning of the current year. If this is a limitation of the API, then how can I pay for getting data for previous years or decade.

Hi @Mukur_Puri

1-minute candle data for the past 5 years is unavailable; however, you can retrieve 30-minute candle data for the same period by using 30minute as the interval.

Here is the URL to access it: https://api.upstox.com/v2/historical-candle/NSE_INDEX%7CNifty%2050/30minute/2024-08-22/2019-08-22

Thank you.