How can I fetch banknifty or nifty options from dhan API?

I want to fetch options minute-by-minute using Dhan API for any index like nifty or banknifty? I can’t find anything in documentation that How can I fetch options directly, for example if I want to fetch options in price range of 50-100 for nifty?
I don’t want an answer to fetch by security ID, I want to fetch all the options of current expiry for a particular index, How can I do it?
Please help me with this.

Hello @SanchayK

If you just want to fetch 1 min OHLC data for options for a particular expiry, you can do that by using Daily OHLC Data API.

However, if you want a scanner API, which gives you the name of Option contracts which are in a particular price range, then you will have to filter this out on your own.