intraday minute candle data not available

there is my code
from dhanhq import dhanhq

acess_token =xxxxxxxx // security reason not showen here
cleint_id =xxxxxx // security reason not showen here
dhan = dhanhq(client_id,acess_token)
security_id=‘13’
exchange_segment=‘IDX_I’
instrument_type=‘INDEX’

intra=dhan.intraday_minute_data(security_id,exchange_segment,instrument_type)

print(intra)

output

{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ‘Data not available’}, ‘data’: ‘’}

i also try with equity tcs same ouput showen

1 Like

Hi there did find a way to this problem I am also facing same problem

Hello @Shreyas_Neeralagi @RAJ9

Welcome to Dhan Community!

Excited to know you are exploring Dhan HQ APIs. Can you confirm when were you trying to poll the Intraday Minute data?

Do note that the 1 min OHLC data is only available for the current day.

I Want historical one minute candle data which function is already present python dhan SDK.
My code runs perfectly and return me day candle data of symbol historical.
which is ours side problem instead of giving me one minute historical candle data your server give day candle historical data

Hello @RAJ9

In the intraday_minute_data, we only provide 1 min candle data for the current day, and not historical basis. You can find more information about the same here: Historical Data - DhanHQ Ver 1.0 / API Document