I am tring to update the super order (trying to update the stop-loss value) but getting below error “{
“errorType”: “Order_Error”,
“errorCode”: “DH-906”,
“errorMessage”: “Missing required fields, bad values for parameters etc.”
}”
for requst “curl --request PUT
’
–data ‘{
“dhanClientId”: “23424”,
“orderId”: “4234234”,
“orderType”: “MARKET”,
“legName”: “STOP_LOSS_LEG”,
“quantity”: 75,
“price”: 100.65,
“triggerPrice”: 100.70,
“validity”: “DAY”
}’” I tried all permutations combinations but just doesn’t work. I retrieved the order using order-id and my stoploss leg is in pending "
{
“dhanClientId”: “234234”,
“orderId”: “34234”,
“exchangeOrderId”: “234234”,
“correlationId”: “SUPER_WINDOW”,
“orderStatus”: “TRADED”,
“transactionType”: “BUY”,
“exchangeSegment”: “NSE_FNO”,
“productType”: “INTRADAY”,
“orderType”: “MARKET”,
“validity”: “DAY”,
“tradingSymbol”: “NIFTY”,
“securityId”: “45266”,
“quantity”: 75,
“remainingQuantity”: 0,
“ltp”: 114.45,
“price”: 0.0,
“afterMarketOrder”: false,
“legName”: “ENTRY_LEG”,
“createTime”: “2025-10-16 10:26:14”,
“updateTime”: “2025-10-16 10:26:14”,
“exchangeTime”: “2025-10-16 10:26:14”,
“omsErrorDescription”: “TRADE CONFIRMED”,
“algoId”: “23424”,
“legDetails”: [
{
“orderId”: “234234”,
“legName”: “STOP_LOSS_LEG”,
“transactionType”: “SELL”,
“remainingQuantity”: 75,
“price”: 100.6,
“orderStatus”: “PENDING”,
“trailingJump”: 0.0
},
{
“orderId”: “234234”,
“legName”: “TARGET_LEG”,
“transactionType”: “SELL”,
“remainingQuantity”: 75,
“price”: 132.4,
“orderStatus”: “PENDING”,
“trailingJump”: 0.0
}
]"





