@Dhan @Prithvi Tell me, which one is the correct jason
- this one
{
“api_key”:“YOUR_DHAN_TRADING_API_KEY”,
“clientId”:“YOUR_DHAN_CLIENT_ID”,
“symbol”:“BANKNIFTY”,
“exchange”:“NSE”,
“segment”:“OPTION”,
“optionType”:“CE”,
“strikePrice”:“44000”,
“expiryDate”:“2026-07-28”,
“transactionType”:“BUY”,
“orderType”:“MARKET”,
“quantity”:“30”,
“productType”:“INTRADAY”
}
- this ?
{
“symbol”:“BANKNIFTY”,
“exchange”:“NSE”,
“segment”:“OPTION”,
“optionType”:“CE”,
“strikePrice”:“44000”,
“expiryDate”:“2026-07-28”,
“transactionType”:“BUY”,
“orderType”:“MARKET”,
“quantity”:“30”,
“productType”:“INTRADAY”
}
are these statement correct ? I got this from copilot.
-
“Dhan’s webhook connector does not expect raw API‑style JSON with
api_keyandclientIdinside the payload.” -
Including "api_key"and"clientId"inside the JSON body is unnecessary and will likely be ignored or rejected, because Dhan already knows your credentials from the webhook configuration.