How to get historical futures candle data?

I got the instrument key from csv file for the current expiry dates only.
but i want futures data from 1st Jan 2023 to till date. so from where can i get the instrument key for past expiry dates?

do the instrument key changes as the expiry date changes?

Hi @Mayur_Rathi expired instrument keys are unavailable and we recommend using the Json Files instead of the CSV File.

Thank you .

So i can’t get the previous (Historical) data of futures market from Upstox api?