Introducing Webhook Alerts : Direct Order Placements on TradingView from Dhan

@Dhan_Help

It would be nice if you guys can support and array of JSON objects and not just a single JSON object. It would help then to place multiple orders at the same time an alert comes from TV. This is very useful for systems with stop and reverse kind of entry / exit condition. We will need to sell the current position in one instrument and then buy in to a new position in another instrument. E.g:- Sell a put option and buy a call option. Something like this

[{
“transactionType”: “S”,
“orderType”: “MKT”,
“quantity”: “1250”,
“price”: “0”,
“exchange”: “{{exchange}}”,
“secret”: “hnh7J”,
“tradingSymbol”: “{NIFTY 30 JUN 16300 PUT}”,
“productType”: “C”
}, {
“transactionType”: “B”,
“orderType”: “MKT”,
“quantity”: “1250”,
“price”: “0”,
“exchange”: “{{exchange}}”,
“secret”: “hnh7J”,
“tradingSymbol”: “{NIFTY 30 JUN 16100 CALL}”,
“productType”: “C”
}]

Other kind of multi leg options strategies would also benefit from this kind of an implementation.

4 Likes