Instrument Tokens for the options and Futures


PFA the code:

from kiteconnect import KiteConnect
import os
import datetime as dt
import pandas as pd

cwd = os.chdir("D:/Backup/Desktop/Zerodha")

#generate trading session
access_token = open("access_token.txt",'r').read()
key_secret = open("api_key.txt",'r').read().split()
kite = KiteConnect(api_key=key_secret[0])

records=kite.historical_data(1270529, "2020-12-01", "2021-01-28", "5minute",continuous=False)

The above code downloads the historical data for the ICICIBANK Symbol.

My doubt is If I want to download data for ICICI Futures or ICICI Options using the a particular strike price using zerodha how do I do that?

The following gives simple ohlcv data

I understand that I may be using the wrong instrument id. In this case how to find the options and futures symbols or instrument id on zerodha?

This discussion has been closed.