Edit: This is not a problem of Fyers but my misunderstanding. Fyers is not at fault here.
Time and time again, Fyers changes the symbol format used by the api. I want to ask why ? Why break people's code every few months. Just why ? I've also asked about this previously
Also if you plan on breaking people's code, at least make sure that the value add is worth the breakage of code.
From the latest symbol format.
https://myapi.fyers.in/docsv3#tag/Appendix/Symbology-Format
{Ex}:{Ex_UnderlyingSymbol}{YY}{M}{dd}{Strike}{Opt_Type}
The symbol format uses the first letter of the month... Just plain terrible choice. Not only do month initials repeat in a year, there are two consecutive months with the same initial letter of the month viz June and July. What's the plan there ? Will people not be able to trade in July weeklies in June because both symbols would be NSE:NIFTY23J0520000CE
?? Or will you change the symbol format once again ?
And this is done at a time when potentially Fyers is about to give Historical Option data via api which will just increase the chances of a clash ([January, June, July], [March, May])
Seriously guys, please pick a symbol format which is unambiguous and which can be generated by people on the fly with help of existing datetime libraries. For eg something like NSE:NIFTY2023010120000CE
. This type of symbol methodology is unambiguous and can be made into a function in every language without much hassle and will never clash with any other expiry.
Please look into this guys... And a small heads up about breaking changes like symbol format changes would be much appreciated as well.