how to exit from a regular order?

amandeep179018
def exit_order(self, variety, order_id, parent_order_id=None):
"""Exit a BO/CO order."""
self.cancel_order(variety, order_id, parent_order_id=parent_order_id)

the above code works only for BO & CO but how can I place an exit order for REGULAR order?
  • sujith
    sujith edited December 2019
    You need to place a market order of opposite transaction type, with same product, and quantity.
  • amandeep179018
    amandeep179018 edited December 2019
    will it cost me double brokerage?
    double = (for placing order) + (for placing opposite order)

    and do i need double funds for that
Sign In or Register to comment.