zerodha / pykiteconnect

The official Python client library for the Kite Connect trading APIs
MIT License
965 stars 462 forks source link

unable to procced with buy or sell banknifty #154

Closed akjoshi009 closed 1 year ago

akjoshi009 commented 2 years ago

order_id = kite.place_order(tradingsymbol="BANKNIFTY7JUL33700PE", exchange=kite.EXCHANGE_NFO, transaction_type=kite.TRANSACTION_TYPE_BUY, quantity=25, variety=kite.VARIETY_REGULAR, order_type=kite.ORDER_TYPE_MARKET, product=kite.PRODUCT_MIS, validity=kite.VALIDITY_DAY)

after executing this error The instrument you are placing an order for has either expired or does not exist

ranjanrak commented 2 years ago

You are using the wrong trading symbol for the weekly banknifty contract, it should be BANKNIFTY2270733700PE. Go through the kite connect dev forum FAQs here to know more about this.