JSON Object Generator for Exit Order

Dear Sir,
Kindly provide JSON Object Generator on dhan platform for Exit order on trading view platform. At present it is available only for buy and sell.

Thanks & Regards,

Hello @rahman.iitd

First of all, welcome to Dhan Community!
To answer your question, one can simply use Sell or ‘S’ in JSON for exiting long position and Buy or ‘B’ in JSON for exiting short position. To keep it open and simple, we have only kept two parameters there which covers all the possible cases.