Welcome to Dhan Community!
You can refer to this video to execute baskets using Webhooks : here.
Bracket orders are not yet available on TV Webhooks, however you can create separate buy/sell legs for Target/Stop Loss.
ok
This method for Option Buying Strategy , i’ll have to keep checking the ATM options and create a basket every time it changes right?
Can i trigger buy/sell orders of ATM call and put options directly on Dhan using webhooks ?
The motive behind webhooks is to ensure strategy based buy/sell signal can be taken with ease. When cancelling open orders or all positions, you can definitely use our Web platform or even use our APIs to build scrips which help you do this. On Dynamic Options trading, we will evaluate this moving forward, yet currently do not have any plans for the same.
Thanks for the quick response Hardik. What is the tentative ETA to enable all F&O (including currency, commodities ) with standalone json structure (instead of baskets)? Meanwhile can the Dhan Tech team allow more than 20 baskets per user? Since we need 4 baskets for each Scrip (long, exit long, short , exit short), with this limitation we can automate only 5 Scrips . Can you please increase this limitation to 40 or 80 baskets per user?
Ok , Thank you
Would it be possible to receive an update this month ?
Just a small suggestion, Instead of basket orders ,if the JSON message had an option to change the product type to F&O and choose ATM options , all strategies would work with just one Alert .
We don’t have a tentative timeline yet, but it should be released by next month. We will announce it first on community itself. It will be enhancement which should redefine order placement through webhooks.
@harshad.inarkar it might not be possible to increase the basket per user limit, for this particular usecase only. However we have noted this and with time, we will relook into optimal number of baskets per user.
Yes. For creating multiple stock price alert, and placing orders on Dhan via Webhook, you will need relevant Trading View plan. As you know, tradingview.com is a standalone product and features extended by them on various pricing plan is as per their policy. We do not charge anything for allowing order placement on Dhan via Webhook at our end.
I have a doubt regarding trading options with basket order.
Suppose i have basket A with CE option of banknifty which got triggered by my TradingView alert for buy.
So how do i close this when my TradingView sell signal is generated?
Do i have to create another basket (Basket B) with the same option but instead use Sell not Buy?