expiry attribute to fetch next month option chain in api

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

Hey @manjula.naika.e97zx00g

You can pass the expiry date in the timestamp itself to get the required data :
https://myapi.fyers.in/docsv3#tag/Data-Api/paths/~1DataApi/put

this don’t work {“timestamp”: “”,“expiry”: “2024-11-28” # Set} infact You can pass the expiry date in the timestamp in epouch , then it works