Does intraday daily minute charts api work for indices?

How do I get intraday daily minute data for indices like BN & NIFTY? None of the following worked for me.

dhan.intraday_daily_minute_charts(“26009”,
“NSE_EQ”,
“INDEX”)

dhan.intraday_daily_minute_charts(“26009”,
“IDX_I”,
“INDEX”)

dhan.intraday_daily_minute_charts(“26009”,
“NSE_EQ”,
“EQUITY”)

Hello @softice

Yes, data APIs do work for indices as well. Over here, you have to enter the correct security ID as per the Scrip Master List to be able to fetch the index OHLC.

For example, to fetch BANKNIFTY, “securityID” = “25” and “exchangeSegment” = “IDX_I”

Hope this helps!

Hi Hardik,

i am not getting the data with below request for FINNIFTY and Bank Nifty Index data for Intraday . .

BANKNIFTY

‘{
“securityId”: “25”,
“exchangeSegment”: “IDX_I”,
“instrument”: “INDEX”
}’

FINIFTY
‘{
“securityId”: “27”,
“exchangeSegment”: “IDX_I”,
“instrument”: “INDEX”
}’

Can you please help here. Is am i missing something.

Manoj

Hello @msuryawanshi

First of all, welcome to Dhan Community!

Can you please share the response received at your end - whether it was a blank data frame or an error code. Along with that, can you also help me with the particular time when you called this API.

Thanks Hardik for your response.

I was trying this on week end so i’m getting empty response. But on weekday i’m getting the data.

Thanks

MS

@msuryawanshi

Understood. We have noted this error as this is not an intended behavior since there is no such downtime on weekends. We will try to replicate this at our end and deploy fixes, if required.