New symbology format

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.

I think you are mistaken. Nothing has changed suddenly, and the convention is like that for many years as far as i can remember. Also, this is an EXCH convention.

Long time ago there were NO weeklies, only monthly expiry.

There are 3 char for Month, so all Monthly expiries are JAN-DEC

For weeklies, it Mdd, one char for month and 2 char for date. date is 1-31 and M is numeric 1-9 from Jan to SEP. Only last 3 months are O,N,D for Oct,Nov,Dec

Your code if generating symbol name, should first deduce the underlying, say Nifty, Finnifty, Bank etc, then either lookup from list or deduce if the required symbol is monthly or weekly and then apply the rules for MMM or Mdd

FYI, Banknifty expiries for weeklies are on Wed and Monthly is on Thu.

@algo_go the problem is because of Symbol format for last 3 months of the year i.e October , November and December they have different symbol format rest of them are same , for the above months symbols they using Alphabetic letter that is Month first letter , D for December like that , i too already discussed about this.

@sathishmurugan450-phl @chirag , Yes I guess you both are correct and this was entirely my fault. Thanks a lot for explaining.