How to Get ATM strike price Using FYERS API?

Hey everyone!
I’m currently working with the FYERS API and need some help.

Does anyone know how to get the ATM strike price for Index for current expiry using the FYERS API?

Things have tried so far -

fetch option chain using below code -

data = {

"symbol":"NSE:NIFTY50-INDEX",

"strikecount":1,

"timestamp": "" #for current expiry

}

response = fyers.optionchain(data=data);

but here I am getting 7 objects ( 1 index + ITM, ATM & OTM CE, PE). how to identify which one is ATM strike as all objects have similar data. no distinguishable identifier for ATM , OTM etc.

If I pass strikecount as 0 → I am geeting all CE& PE options

Any insights or sample code would be much appreciated! :raising_hands:
Thanks in advance