Apologies, I’m debugging this issue.
Also if you would provide the logic in code you use to fetch the data, it would be useful, That is, The parameters being passed in the API.
Also are you passing cont_flag as 1?
Missing data is what error code -300 is for. When I first wrote my script, I got a csv file which enumerated all errors possible from fyers documentation website. (Can’t find it now on new documentation website)
Here we see error code -300 for options for which there is no data. I verified this from trade.fyers.in. But some options fail with error code -10. One thing that I have noticed that it is always the “Big round numbers” for which this happens. i.e For banknifty: the strikes which are multiples of 500 and for nifty: strikes which are multiple of 100. I don’t know if it is a coincidence or not.
As live example I took 2 tickers NSE:BANKNIFTY2351835000CE and NSE:BANKNIFTY2351835100CE . I tried both of them on trade.fyers.in and both have no data. So something else is also going wrong for a few strike prices which causes error message to fall back to “unexpected error”
Let me know if you need more information
I am attaching my new updated code that I now use. (This is actually a .txt file. I had to rename it to .png because for some reason .txt is not allowed. Please rename it to code.txt to see my code
Thank you for bringing this issue to our attention. We are currently looking into it, and we assure you that it will be addressed in our upcoming release.