Hey, i am really amazed by the features of webhook and API trading that dhan is providing but there is one issue that is when you generate the message for the alert to trade in webhook, there is no automatic calculation of options strike price and expiry.
suppose market is trading around at 25000 and i generate the message for 25000 right, now i don’t know when my alert is going to be triggered (i am using an automated scalping strategy) thus now if market has gone to suppose 25200, and the alert is triggered then i will be unable to trade the nifty ATM strikes and my orders will be placed at nifty ITM strikes, thus this creates an issue while trading
Now i tell you the second scenario where i want to place orders in fix 200 points ITM from the current price of the nifty thus that thing is also not possible as there is no dynamic change in the strike price which ultimately makes this feature useless
what i recommend to do is add a feature in webhook where the strike price is automatically calculated based on the current price of the nifty index, and user can select if they want to trade in ATM, ITM, or OTM.