The instrument you are placing an order for has either expired or does not exist.

decoder_12
decoder_12 edited February 2023 in Python client
orderID = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_NFO,
tradingsymbol="NFO-OPT:NIFTY2321618000CE", transaction_type=kite.TRANSACTION_TYPE_BUY,
quantity=50, product=kite.PRODUCT_NRML,price=36,
order_type=kite.ORDER_TYPE_LIMIT,validity=kite.VALIDITY_DAY)

print(orderID)

orderID = kite.place_order(variety=kite.VARIETY_CO, exchange=kite.EXCHANGE_BFO,
File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 346, in place_order
File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 821, in _post
File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 886, in _request




  • decoder_12
    Its not even working for

    orderID = kite.place_order(variety=kite.VARIETY_CO, exchange=kite.EXCHANGE_BFO,
    tradingsymbol="NIFTY2321618000CE", transaction_type=kite.TRANSACTION_TYPE_BUY,
    quantity=50, product=kite.PRODUCT_NRML,price=36,
    order_type=kite.ORDER_TYPE_LIMIT,validity=kite.VALIDITY_DAY)
  • rakeshr
    tradingsymbol="NFO-OPT:NIFTY2321618000CE"
    You are using the wrong trading symbol for order placements. It should just be a trading symbol, not along with exchange for order placements here only NIFTY2321618000CE. Check all order placement input parameters here.
  • decoder_12
    @rakeshr its not even working for NIFTY2321618000CE
  • rakeshr
    Can you paste the complete error stack trace? The above pasted one is incomplete.
  • decoder_12
    Traceback (most recent call last):
    File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/KiteNeedfuls/OrderPlacement.py", line 116, in
    orderID = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_BFO,
    File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 346, in place_order
    File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 821, in _post
    File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 886, in _request
    kiteconnect.exceptions.InputException: The instrument you are placing an order for has either expired or does not exist.
  • decoder_12
    Traceback (most recent call last):
    File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/KiteNeedfuls/OrderPlacement.py", line 116, in
    orderID = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_NFO,
    File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 346, in place_order
    File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 821, in _post
    File "/Users/vivekpatel/PycharmProjects/30MinsBreakout/venv/lib/python3.10/site-packages/kiteconnect-3.8.1-py3.10.egg/kiteconnect/connect.py", line 886, in _request
    kiteconnect.exceptions.InputException: The instrument you are placing an order for has either expired or does not exist.


    orderID = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_NFO,
    tradingsymbol="NIFTY2321618000CE", transaction_type=kite.TRANSACTION_TYPE_BUY,
    quantity=50, product=kite.PRODUCT_NRML,price=36,
    order_type=kite.ORDER_TYPE_LIMIT,validity=kite.VALIDITY_DAY)
  • rakeshr
    tradingsymbol="NIFTY2321618000CE"
    It's an expired contract, expired on 216 (from tradingsymbol), 16.02.2023. Fetch all contract-related detail from the instrument list.
This discussion has been closed.