Introducing: Webhooks as Order Type on Dhan. Now do Options Trading on Dhan Charts

and that is the core issue. How do I place an order to close the open Long order of a Delivery type?