Vikram Sri Hi,
I wanted to fetch historical data using Fyers API.
I am using the symbol nomenclature as mentioned from Fyers Docs, but getting error –
For example, I wanted 34900CE data from 30th December 2021 expiry and I am using below inputs to fetch from ‘history’ method –
{'symbol': 'NSE:BANKNIFTY21123034900CE', 'resolution': '3', 'date_format': '1', 'range_from': '2021-12-29', 'range_to': '2021-12-30', 'cont_flag': 1}
{'symbol': 'NSE: BANKNIFTY21DEC34900CE’, 'resolution': '3', 'date_format': '1', 'range_from': '2021-12-29', 'range_to': '2021-12-30', 'cont_flag': 1}
{'symbol': 'NSE:BANKNIFTY21D3034900CE’, 'resolution': '3', 'date_format': '1', 'range_from': '2021-12-29', 'range_to': '2021-12-30', 'cont_flag': 1}
But, I am getting the below error for any inputs-
{'s': 'error', 'code': -300, 'message': 'Please provide a valid symbol'}
Can you please help me know what would be the correct symbol for fetching 34900CE data for 30th December 2021 expiry?