Can anyone know at what time DHAN update the daily candle data in API, as when i tried to fetch at 10 PM still getting yesterday’s data
@Imran can you please respond
Can anyone know at what time DHAN update the daily candle data in API, as when i tried to fetch at 10 PM still getting yesterday’s data
@Imran can you please respond
Hi @Sonali_Soni ,
The API for daily candle data can be fetched once the market opens, and the data will be available at the same time.
thanks for your reply however when i use this function tsl.get_long_term_historical_data(tradingsymbol: str, exchange: str, timeframe: str, from_date: str, to_date: str, sector: str = “NO”, debug: str = “NO”) to fetch data after market close around 9 PM i got an error below
-----SUCCESSFULLY LOGGED INTO DHAN-----
Fetching data for RELIANCE on 2026-05-05…
Fetching data for RELIANCE from 2026-05-05 to 2026-05-05
Failed: 2026-05-05 to 2026-05-05: {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-905’, ‘error_type’: ‘Input_Exception’, ‘error_message’: ‘System is unable to fetch data due to incorrect parameters or no data present’}, ‘data’: ‘’}
No data returned. The market might just be opening or is closed.
Hi @Sonali_Soni ,
The data can be fetched at any time. Kindly verify the parameters being used.
Refer this code for the parameters -
hist = tsl.get_long_term_historical_data('RELIANCE','NSE','1','2026-05-05','2026-05-05')