Banknifty historical data fetching problem, please correct

df=pd.DataFrame(dhan.intraday_minute_data(security_id=‘25’,exchange_segment=‘NSE_FNO’,instrument_type=‘INDEX’)[‘data’])

This command is showing error
DataFrame constructor not properly called!

While I am getting banknifty options but please correct my command for banknifty index

Also please reply how to get Open Interest in Options historical data

I am able to get BANKNIFTY index historical data. Please tell how to get OI from option historical data

Hello @neha123

Open Interest data is not provided right now as part of Historical Data. We are planning to relook at our Historical Data offering, will try to incorporate this as well.

1 Like