Getting below error while placing order for Weekly Option (Bank Nifty) : Able to fetch stream data for every one minute but placing order is creating error.
Is it because of no subscribe Kite API
Code :
kite = KiteApp(enctoken=enctoken) # Using from kite_trade import * to access Kite.
Symbol = kite.quote(["NFO:BANKNIFTY23D0644500PE"])
Error:
Request failed with status code: 400
b'{"status":"error","message":"The instrument you are placing an order for has either expired or does not exist.","data":null,"error_type":"InputException"}'
None
Hello,
Getting below error while placing order for Weekly Option (Bank Nifty) : Able to fetch stream data for every one minute but placing order is creating error.
Is it because of no subscribe Kite API
Code : kite = KiteApp(enctoken=enctoken) # Using from kite_trade import * to access Kite.
Symbol = kite.quote(["NFO:BANKNIFTY23D0644500PE"])
order = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_NFO, tradingsymbol= Symbol, transaction_type=kite.TRANSACTION_TYPE_BUY, quantity=1, product=kite.PRODUCT_MIS, order_type=kite.ORDER_TYPE_MARKET, price=None, validity=None, disclosed_quantity=None, trigger_price=None, squareoff=None, stoploss=None, trailing_stoploss=None, tag="RVS") print(order)
Error: Request failed with status code: 400 b'{"status":"error","message":"The instrument you are placing an order for has either expired or does not exist.","data":null,"error_type":"InputException"}' None