API connection and charges

I have my python script ready. How do I connect with API to backtest nifty options 5 min timeframe for last 3 year

I want option data of last few year to generate time stamp for backtesting

Hi @AKASH_5507347
You can use the following API to fetch expired contract data for your backtesting purposes:
https://upstox.com/developer/api-documentation/expired-instruments

This API provides details of expired instruments that you can utilize for historical analysis and backtesting.

Thanks!