Fyers API Issue - Historical Data access of Index

Facing an error while trying to fetch historical data. Any change that we need to make here? It is working for EQ. Not working for any index

My code is as below

data = {

"symbol":"NSE:NIFTYBANK-INDEX",

"resolution":"5",

"date_format":"1",

"range_from":"2024-02-09",

"range_to":"2024-02-09",

"cont_flag":"1"

}

fyers.history(data=data)

getting error {'s': 'error', 'code': -300, 'message': 'Please provide a valid symbol'}

1
6 replies