I want to get historical data (day cadence) for most active nifty futures (closest expiry). I am using kite.historical_data api to fetch the same. The problem I am facing is that the instrument token for most active futures would change each month - Is there a programmatic approach to get the same?
@daniamarkumar You can get the latest month any contract instrument token from full instrument list file. Programmatic approach will be to retrive instrument token from above file,by using if else condition statement for specific scrip/contract.
You can get the latest month any contract instrument token from full instrument list file.
Programmatic approach will be to retrive instrument token from above file,by using if else condition statement for specific scrip/contract.