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'}
I don't think there are way to get expired weekly option. Can u share code how u getting current weekly options?
Currently we do not provide history data for expired options.