@sujith what do you mean ? Can you answer my original question on how to get the token for an expired contract. Clearly using the current token does not works.
Hi @Ajax, Check out this thread. It is available for only future contracts and not options contracts. For options contracts, it won't be continuous charts data since it will end at zero every month. If you want data then you can check out NSE website for Bhav copy. Again exact strike price may not be available if it has undergone some corporate action in between JAN to OCT.
You can check continuous feature mentioned here https://kite.trade/docs/connect/v1/#historical-data
You just need to pass continuous=1 as param to get historical data for expired contracts.
PS: We only have day's candle for expired contracts.
Does not work
KOTAKBANK17OCT780PE - has instrument token 12995330
https://api.kite.trade/instruments/historical/12995330/day?from=2017-02-01&to=2017-02-20&continuous=1
gives me the following data: (no idea what this data is, clearly not the option OHLC)
I just tried and I got this response
Check out this thread.
It is available for only future contracts and not options contracts.
For options contracts, it won't be continuous charts data since it will end at zero every month.
If you want data then you can check out NSE website for Bhav copy. Again exact strike price may not be available if it has undergone some corporate action in between JAN to OCT.