Historical Data & Security IDs for Expired MCX Natural Gas Futures

Hello @Mukund_Ranjan ,

Please note that expired futures contract data is not available via our APIs.

Intraday data for futures can be fetched only while the contract is active, starting from the contract date up to the current date.

However, daily data for futures is available in a continuous format. Using the continuous futures instrument, daily OHLC data can be fetched from inception till the current date, as the data is rolled across expiries using https://dhanhq.co/docs/v2/historical-data/#daily-historical-data.

Security IDs for expired contracts are removed from the security master, so they are no longer available separately. For historical analysis, the continuous futures security ID should be used.