new_data = {
"symbol":"NSE:BANKNIFTY20NOV25000PE",
"resolution":"D",
"date_format":"1",
"range_from":"2020-10-01",
"range_to":"2020-10-30",
"cont_flag":"1"
}
response = fyers.history(data=new_data)
print(response)
Tried this as well and it is not working
new_data = {
"symbol":"NSE:NIFTY2310518200CE",
"resolution":"D",
"date_format":"1",
"range_from":"2023-01-01",
"range_to":"2023-01-29",
"cont_flag":"1"
}
response = fyers.history(data=new_data)
print(response)
Please provide currently active symbols , We do not provide data for expired symbols .
Please find the symbology format :
https://myapi.fyers.in/docsv3#tag/Appendix/Symbology-Format