historical option data for expired contracts not fetched

i think FYERS has stopped providing historical option data for expired contracts

even though the symbol name is correct but still getting the error as invalid symbol

this is the code

data = {

"symbol":"NSE:NIFTY25APR22500CE",

"resolution":"5S",

"date_format":"1",

"range_from":"2025-04-21",

"range_to":"2025-04-24",

"cont_flag":"1"

}

data = fyers.history(data=data)

data

2 replies