Unable to find live data for getting ITM, ATM, and OTM
Hi @prabhat_bhusan, I hope by ITM, ATM, and OTM, you are referring to the following:
An In-the-money (ITM) call option is one where the strike price is below the spot price of the underlying asset.
An At-the-money (ATM) call option is when the strike price is approximately equal to the spot price of the underlying asset (i.e., Strike price = Spot price).
An Out-of-the-money (OTM) call option is one where the strike price is higher than the spot price of the underlying asset (i.e., Strike price > Spot price).
You can refer to the Put Call Option Chain API, where all available contracts for an underlying instrument key like NSE_INDEX|Nifty 50
at a specific expiry are listed. Each element in the returned JSON object includes underlying_spot_price
and strike_price
, allowing you to easily determine whether a contract is ITM, ATM, or OTM.
Thank you.