It looks like you're new here. If you want to get involved, click one of these buttons!
place_order(BUY, PRODUCT_MIS, TYPE_MARKET, VARIETY_CO, quantity, trigger_price)
exit_position(VARIETY_CO, order_id)
?place_order(SELL, PRODUCT_MIS, TYPE_LIMIT, VARIETY_REGULAR, quantity, price)
You can check out documentation here.
pykiteconnect provides a wrapper to exit cover order position which requires the user to send order id and parent order id.