I am facing issue in getting historical data from FYERS API of historical Options :
This is the Entry I am doing
data = {
"symbol":"NSE:NIFTY23JUN18000CE",
"resolution":"1",
"date_format":"1",
"range_from":"2023-06-24",
“range_to”:“2023-06-24”,
“cont_flag”:“1”
}
And the Response I have got is :
The value of data is equals to {‘symbol’: ‘NSE:NIFTY23JUN18000CE’, ‘resolution’: ‘1’, ‘date_format’: ‘1’, ‘range_from’: ‘2023-06-24’, ‘range_to’: ‘2023-06-24’, ‘cont_flag’: ‘1’}
{‘s’: ‘error’, ‘code’: -300, ‘message’: ‘Please provide a valid symbol’}
Please help to fix this
I couldn’t find the symbol ‘NSE:NIFTY23JUN18000CE’ in the symbol master file provided by Fyers. (location: https://public.fyers.in/sym_details/NSE_FO.csv )
I think that’s why you are getting this error. I found ‘NSE:NIFTY24JUN18000CE’, ‘NSE:NIFTY25JUN18000CE’, ‘NSE:NIFTY26JUN18000CE’.
PS: I’m new to trading and fyers api, and just trying to help.
Thank you nishant
This is certainly informative piece of information
I was trying to get historical data and was refering to the symbology mentioned in their documentation
The Equity Futures section I was trying to fetch information
Are you by any chance aware of any other api that we can use to fetch historical data in an API format of options at a minute level.
Adding the screenshots for getting the options monthly data.
ZppA1qLXjC
(Inactive Member)
July 10, 2023, 6:51am
5
HI @tushargarg0110-u7o ,
You are passing expired symbol, please pass symbol which are trading.
had recommended RELAINCE on 19th March when price was 2223…today price 2735…an appreciation of 23% in a little over 3 months