Could not able to cancel the order

KrishnaKumbham
KrishnaKumbham edited December 2018 in Python client
I could able to place an order but could not able to exit the opened position. below is the code i am using
to place the order:
orderid_buy_temp=kite.place_order(tradingsymbol=instru_name[g],exchange='NSE',quantity=quant[g],variety='regular',transaction_type='BUY',order_type='MARKET',product='MIS',validity='DAY')

to exit above order:
kite.cancel_order('regular',orderid_buy_temp)


Let me know if there is any problem in above code
This discussion has been closed.