BANKNIFTY - historical_data - continuous=True

lakhanisagara
Is there a way to get weekly BANKNIFTY option data?

to_date = datetime(2020,10,25)
from_date = to_date-timedelta(days=60)
df = pd.DataFrame(kite.historical_data(10162178, from_date, to_date, 'day', continuous=True))

historical data that I get using above code is of previous month expiry data. Is there a way to get previous week expiry option data?

Thanks
Sagar
Sign In or Register to comment.