Fetch ATM , ATM+100 and ATM-100 strikes using spot

anandlramadurg
I want to place call/put option order on ATM, ATM+100 and ATM-100 strikes on NIFTY ( based on spot price ).
Is there an API available to do so? Any suggestions please?
Tagged:
  • Arasu84
    Based on NIFTY LTP(spot price), you can calculate like below.

    sample,

    ATM=(Math.round(NIFTYLTP/100))*100;
    ATMPlus=ATM+100;
    ATMMinus=ATM-100;

    TradeSymbolCE="NIFTY20JAN"+ATMPlus+"CE";


Sign In or Register to comment.