DhanHQ API
Access Data and Trading via APIs
We would like to inform you that through our APIs, intraday historical data (1-minute timeframe) is available for up to 5 years only for active contracts only.
Please note that futures intraday data is maintained in a contract-wise format, and therefore it can be fetched only for currently active contracts. Data for expired futures contracts is not available through intraday historical endpoints.
For clarity:
Intraday historical data (1-min, etc.) → Available only for active contracts
Expired futures contracts intraday data → Not available via API
Daily historical data → Available in a continuous format using the relevant current expiry security ID from inception to date.
Hence, for building a complete dataset, intraday historical data can be fetched only for active contracts, while expired contract intraday history is not supported via any endpoint.
Related FAQs

