I want to fetch next month expiry option data. is there any attribute available

I want to fetch next month expiry option data. is there any attribute available

Hi @manjula.naika.e97zx00g, to fetch next month’s expiry option data, just head over to the Option Chain. You’ll find filters there that let you choose the expiry date, so you can easily select the next month’s expiry. However, you can also check out our Predefined Watchlist. It has options sorted by expiry dates, which can help you track the next month’s expiry options quickly.

data = {
        "symbol": symbol,
        #"expiry": "2024-11-28",  # Set appropriate expiry date
        #"symbol":"NSE:TCS-EQ",
        "strikecount":2,
        "timestamp": "",
        "expiry": "2024-11-28" # Set
    }
here in above code is expiry attribute correct to fetch next month option chain