Request for Guidance on Fetching Open Interest for Index and Stock Futures

Hi,
I would like to know if there is a way to fetch open interest (OI) data for futures contracts—both index and stock—for the near and far month expiries.
Could you please guide me on how to access this information?

Thank you.

Hi @Evilord

Welcome to our community.

You can find OI data through our Data API. Here is the documentation link. Introduction - DhanHQ Ver 2.0 / API Document

You need to subscribe Data API with the nominal fee of 499/- per month.
Hope this helps.