Exit All Through API

Dhan webhook through TV alert can only place a entry order with json .
Dhan should make a json syntax of exit all positions order too.
Using webhook can’t be #Algo, untill we do not have exit order json syntax.
Every time i have to place a manual exit order , after entry alert trigger, in my TV indicator whenever signal changes.
What’s the point of algo if i have to look the indicator everytime in live market for signal change.
Most of the third party have a json syntax for all open positions exit code (in single alert).
I have used it . It worked well ,but need monthly subscription for this.

I have created a Indicator In TV, for webhook alert trigger order using json, it’sworking perfect for all segments and FNO. But can’t exit automatically.

Some third-party Algo developers created TV strategy in which they use Strategy.exit_all function for exit alert. But don’t know how they are generating json for exit order without Dhan HQAPI.

Please introduce single code like “[{“CLOSE”:“CLOSE”,“E”:“NSE”,“P”:“INTRADAY”,“AT”:“DHANHQ”}]” to exit all open positions instead of placing a sell order with same spot price manually.

is there any update on this (exit all position through API) ?

Hello @VIJAY_KALLUR

Welcome to MadeForTrade community!

On APIs, we have decided to not look at Exit All, as the same can be made on your end itself by calling Positions API and then placing orders to exit positions.

Hi @Hardik , how can one do that when using TV webhooks? If someone wants to trade only by using TV this is crucial.

For TV webhooks to be real useful, this is an important api.

1 Like

Hello @Amit_Rana

Understood this. TV webhooks and API are two different modes all together. The idea with Webhook Orders is to give an option to create semi systematic trade.

With TV webhooks, the need of Exit All shouldn’t be there, if you simultaneously place exit alerts as well for each entry.

i never heard from Dhan Team about my query.
I don’t want to go with API connection.
I want to generate JSON for exit my running position in dhan with TV webhook. is this possible to generate Exit JSOn?

ex: if i use Supertrend indicator and my Buy condition is ON, when signal changes my sell condtion trigeers but i want to exit my position also and then take new sell postion.

Hello @Keshhav_Karmakar

Understood your point. You can simply create a Sell JSON to exit for your long positions and vice versa. There is no need to require specific exit JSON for this.