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

Hi Hardik, I am getting incorrect historical intraday data for Banknifty and Sensex index. Same code is fetching the Nifty spot data correctly. can you help me wit this ? Here start_date = datetime(2021, 7, 1)and data starts from 10 am timestamp. Another screenshot is of 60m interval. If you are charging 499 monthly the least worrisome thing should be that data you provide is correct. Nifty 1m data is also posted here:

The timestamp goes beyond market hours . 16:15 , 17:15 ..18:15 ???

@Hardik Look at these timestamps !! :frowning:

Hey @RookieTrader

Just tried replicating this at my end and couldn’t. The responses seemed the way it should be. Can you possibly raise a ticket on apihelp@dhan.co with request structure and details, will look into it.