Histoical API of myAPI is giving error for invalid symbol

Hi,

Although i m using symbol provided in sample i.e.. NSE:SBIN-EQ … history api is giving me below error:

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

please help with valid symbol format.

Also, what should be the format for fetching data for n number of symbols say 20 ,30 or 50 symbols in one request

Hey Rahul,
the symbol NSE:SBIN-EQ is correct and I am getting the historical data for it. Can you send a screenshot of your code.
Only one symbol can be passed for historical API.

Hi Vikram, I’m facing a similar issue, but with a different symbol. Im getting error when I use NSE:BANKNIFTY21AUG36000CE, Can’t we get previous week options history? I needed this for bacl testing my strategy. (Note NSE:BANKNIFTY2190236000CE is working fine)

Hi Sai, I am also facing same issue. expired weekly option history not able to get through fyers data api(history).
did you find any solution?

if yes, please let me know

thanks

Hi,

Is there any resolution for this problem. I am trying to pull the historical data of expired options Is that now supported by API ?

Thanks

Parimal.

Hi,

After some struggling, I came to understand that fyers do not provide option data except the current week. So either u have to pay for their premium third party services or else wait for every Friday. Collect all the data once and store it in a database

After a couple of weeks you will have some historic data to do your back testing.