API for squaring off the trade/Exit position

vikasdawar
vikasdawar edited June 2020 in API clients
Hi, I am using kiteconnect java api. Just wanted to cross check is there any API method which can close my open position if I provide trade id or some other attribute ? Or do I need to create a new reverse order. For example if I bought few shares of infy now if i want to sell them then do i need to place a fresh sell order or is there any api which can squre off using some api method ?
  • sujith
    If you want to square off bracket or cover order position then you need to use the API as mentioned here.

    For other product types like CNC, NRML, MIS, you need to place market order with the same quantity and opposite transaction type in order to close the position.
  • vikasdawar
    Thanks for the info Sujith
This discussion has been closed.