Historical Data || Old Option || :instrument_token

Hi ,

Wanted to get the price of Jan 2021 nifty put option price on 2nd January (NIFTY21JAN14500PE) . How to get the instrument_token for these old option , it is not present in the instrument list API. Where can i find the token id for old NFO instument.? Is there any other format I can pass this as string instead of a number ?

HistoricalData historicalData = kiteConnect.getHistoricalData(from, to, "12418050", "5minute", false, true); can i pass NFO:NIFTY21JUNFUT instead of 12418050 as this token as not available for old option
This discussion has been closed.