Why change in Index Weekly Option Symbol Format

prakash.jj
Hi,

Why have you guys changed the format of the trading symbol for index weekly options?

Earlier it was YYMMMDD format now YYMMDD format. Why there was no communication on this regard.

For example, as per earlier syntax this week's banknifty option should have been BANKNIFTY14FEB1927000CE but now its BANKNIFTY1921427000CE.

Is this going to be the new format.
Tagged:
  • sujith
    NSE has introduced the new Nifty weekly options from today. In order to support that and make everything uniform, we have switched to the exchange specified format.
  • prakash.jj
    Hmm...why there was no communication to clients.... How can earth someone can code it without knowing what's the trading symbol format.

    Can you confirm what is the format now. Is it YYMMDD for all weekly options and YYMMM for monthly options?
  • sujith
    Since the exchange published it from Monday. We had to take it live. We apologize for not informing users. We will inform such changes henceforth.

    Yes, it will be YYMDD for all weekly options.
    The new exchange month format will have 1 for JAN, 2 for FEB, 3, 4, 5, 6, 7, 8, 9, O - October, N - November, D - December
  • svikas
    I'm trying to place order for BANKNIFTY20D2433000CE as below:

    placeAfterMarketOrder("BANKNIFTY20D2433000CE", "sell", 1)

    def placeAfterMarketOrder(symbol,buy_sell,quantity):
    # Place an intraday market order on NSE
    if buy_sell == "buy":
    t_type=kite.TRANSACTION_TYPE_BUY
    elif buy_sell == "sell":
    t_type=kite.TRANSACTION_TYPE_SELL
    kite.place_order(tradingsymbol=symbol,
    exchange=kite.EXCHANGE_NSE,
    transaction_type=t_type,
    quantity=quantity,
    order_type=kite.ORDER_TYPE_MARKET,
    product=kite.PRODUCT_MIS,
    variety=kite.VARIETY_AMO)

    I fails with error:

    File "D:\Python\Projects\Zerodha\venv\lib\site-packages\kiteconnect\connect.py", line 826, in _post
    return self._request(route, "POST", url_args=url_args, params=params, is_json=is_json)
    File "D:\Python\Projects\Zerodha\venv\lib\site-packages\kiteconnect\connect.py", line 894, in _request
    raise exp(data["message"], code=r.status_code)
    kiteconnect.exceptions.InputException: Unknown `tradingsymbol`

    I can use "ITC", "RELIANCE" etc and that goes fine.

    Please let me know any change required.

    Thanks,
    Vikas
  • rakeshr
    @svikas
    exchange=kite.EXCHANGE_NSE,
    Exchange should be NFO instead of NSE.
  • svikas
    Thanks Rakesh. It worked.
This discussion has been closed.