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.
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
Can you confirm what is the format now. Is it YYMMDD for all weekly options and YYMMM for monthly options?
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
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