Hi,
Yesterday I updated my Dhan webhook URL and Secret key for JSON and while multiple alerts got generated today, none of the trades went through. I am not sure what is going on as till last week this was working fine. here is a sample of the JSON that my code generated.
{“secret”:“SECRETKEY”,“alertType”:“multi_leg_order”,“order_legs”:[{“transactionType”:“B”,“orderType”:“MKT”,“quantity”:“1”,“exchange”:“NSE”,“symbol”:“NIFTY”,“instrument”:“OPT”,“productType”:“I”,“sort_order”:“1”,“price”:“0”,“option_type”:“CE”,“strike_price”:“24000”,“expiry_date”:“2024-10-31”}]}
I had updated the secret key with relevant secret key from JSON generated the same way I did in the past. My previous webhook URL was supposed to expire on 31st October and the current URL will expire on 26th November.