It looks like you're new here. If you want to get involved, click one of these buttons!
try:
order_id = kiteConnect.place_order(
variety=kiteConnect.VARIETY_REGULAR,
exchange=kiteConnect.EXCHANGE_NFO,
tradingsymbol="NIFTY23420APR17650CE",
transaction_type=kiteConnect.TRANSACTION_TYPE_SELL,
quantity=50,
product=kiteConnect.PRODUCT_NRML,
order_type=kiteConnect.ORDER_TYPE_MARKET,
validity=kiteConnect.VALIDITY_DAY
)
print("Order ID: " + format(order_id))
except Exception as e:
print(str(e))
Running this code results in the following error: