How to set Trading Symbols for Banknifty Options Trades ?

Mangesh
TradeSymbol = "BANKNIFTY14JAN32600PE";

Dictionary response = kite.PlaceOrder(
Exchange: Constants.EXCHANGE_NSE,
TradingSymbol: TradeSymbol,
TransactionType: Constants.TRANSACTION_TYPE_BUY,
Quantity: TradeQty,
Product: Constants.PRODUCT_MIS,
OrderType: Constants.ORDER_TYPE_MARKET,
Validity: Constants.VALIDITY_DAY
);

Above code gives error that "Unknown trading symbol"..

How to set Trading Symbols for Options Trades ??

  • rakeshr
    @Mangesh
    You seem to be using the wrong trading symbol. Are you looking for a Weekly Banknifty contract(14th Jan expiry)?
    If yes, then this BANKNIFTY2111432600PE would be correct trading symbol. You can go through this thread to understand format of Weekly options instruments.
    Also, Exchange: Constants.EXCHANGE_NSE should be NFO for F&O contracts.
  • sujith
    @Mangesh,
    You can get all tradingsymbols in the instruments master dump.
  • Mangesh
    Following was working perfect

    BANKNIFTY2112131800CE

    but today following is not working since its monthly expiry next so what should be correct symbol now ?

    BANKNIFTY2112831800CE

  • sujith
    This is a weekly BANKNIFTY instrument. It expired yesterday.
  • Mangesh
    Mangesh edited January 2021
    I know that bro... My question is how to trade in next week expiry ? I want to set 28 Jan 2021 CE or PE Expiry... (Or
    actually Jan monthly expiry for CE or PE)

    Please read my query ... since 21 Jan is expired now i have changed 21121 to 21128...... but its not working
  • sujith
    If it is the last week of the month then you need to look for monthly expiry, Since last week will not have a separate instrument.
    You can find all the instruments on the instruments master dump.

    You need to look for BANKNIFTY21JAN31800PE
  • ssbirute
    How to get LTP ? Using this symbol
  • sujith
    You can refer to the documentation here.
Sign In or Register to comment.