Issue with Fyers Data Api [History method]

Issue with Fyers Data Api [History method]

Expired weekly options history data is not able to get through fyers data api(history). I could  get current weekly options data only. 

please help me to get Expired weekly options history data from fyers api, i need it to backtest my strategy.

Python Code Example:    

data = {"symbol":"NSE:BANKNIFTY2170134800CE","resolution":"5","date_format":"1","range_from":"2021-06-25","range_to":"2021-07-01","cont_flag":"1"}

print((fyers.history(data)))

I am getting below error

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

1
2 replies