Historical Data API Not Returning Latest Available Data
Hi Team,
I’m using the Dhan HQ Historical Data API to fetch price data for the security with ID 11915. However, the latest data point returned is:
16.2 16.37 16.16 16.19 62477298 2025-03-12T18:30:00.000000Z
This corresponds to March 12, 2025, even though March 13, 2025, was a valid trading day. I understand that March 14 was a holiday, but the API should ideally return data for the last active trading session, which was March 13.
Steps Taken:
-
Re-queried the API to check for updates.
-
Verified that March 13 was a trading day.
-
Ensured no filtering parameters were restricting the response.
historicalDataRequest := dhan.HistoricalDataRequest{
SecurityID: “11915”,
ExchangeSegment: “NSE_EQ”,
Instrument: “EQUITY”,
ExpiryCode: 0,
FromDate: “2001-01-01”,
ToDate: “2025-03-18”,
}
Could you please confirm if this is a known issue or if there’s a specific way to request the latest available data correctly?
Thanks in advance!