Unable to get historical data for Live Options Series

Hello All,
I'm unable to get live series options data with historical API (since 1st Jan). I can get the latest data but not historical for the same symbol. Was able to get historical data until Dec'23

Not Working -
data = {

"symbol":"NSE:NIFTY24JAN22000CE",

"resolution":"D",

"date_format":"1",

"range_from":"2024-01-02",

"range_to":"2024-01-05",

"cont_flag":"1"

}

response = fyers.history(data=data)

print(response)

Working -
symbol={'symbols':'NSE:NIFTY24JAN22000CE'}

last_price=fyers.quotes(symbol)['d'][0]['v']['lp']

print(last_price)

Any help or pointers would be helpful.
Thanks in advance!

5 replies