Error in history api for index

I am using api v2 from two or three days history api not working for index getting error “Please provide a valid symbol”

Hey @rajendra_pal_singh

Please upgrade to API V3 to avoid such errors.

Please follow our API latest API docs for this
Docs link : https://myapi.fyers.in/docsv3

and follow code from this github repo

Github Repo : https://github.com/FyersDev/fyers-api-sample-code/tree/sample_v3/v3