exit all orders together

sshiremath2000
i see that there is a python api exit_order which is meant for exiting BO/CO orders. but i want to exit all the open positions together. what is the api for this purpose?
  • rakeshr
    @sshiremath2000
    There is no direct APIs for it.You need to find the open position, run a loop and place opposite transaction type order and market order type.
  • sshiremath2000
    ok. but in kite, all open positions can be exited in one shot....i think we need such one api. hope zeroda dev team takes note of it
  • sujith
    Kite Connect is purely an execution platform.
    We don't provide solutions for writing strategies.
    You need to loop through open positions and place market order of opposite transaction type.
This discussion has been closed.