Exit position using SmartAPI?


  • Hello Team SmartAPI! I've been working on this algo from last 5-6 months and I came across this issue regarding the exiting position/s in SmartAPI. Is there any way to exit the open position through code? I have gone through docs and they didn't mentioned it. Also I have checked some of previous discussions regarding this issues, so is there any update on that? Please let me know is there any way to do this. Thank you.


  • @Moderator_3 hello again! i have tried replacing order type from buy to sell but it is directly selling instead of exiting position. If you can provide little code snippet about exit position or selling it in right way, it would be helpful. Thanks again. Waiting for your response.


  • Hello @aniket

    Please use the place order API to achieve the same

    Regards,
    SmartAPI Team