Get error while placing BO type order through api.

I want to place BO order through api.
Below is body content:
{
“dhanClientId”: “1102254458”,
“correlationId”: “OMTSSCALLBUY”,
“transactionType”: “BUY”,
“exchangeSegment”: “NSE_FNO”,
“productType”: “BO”,
“orderType”: “LIMIT”,
“validity”: “DAY”,
“tradingSymbol”: “BANKNIFTY-Jan2024-44600-CE”,
“securityId”: “46128”,
“quantity”: 15,
“disclosedQuantity”: 0,
“price”: 618.05,
“triggerPrice”: 617.55,
“afterMarketOrder”: false,
“amoTime”: “OPEN”,
“boProfitValue”: 2,
“boStopLossValue”: 2,
“drvExpiryDate”: “31-01-2024 14:30”,
“drvOptionType”: “CALL”,
“drvStrikePrice”: 44600
}

The error I recieved:
{
“errorCode”: “BAD_REQUEST_ERROR”,
“httpStatus”: “BAD_REQUEST”,
“internalErrorCode”: “RS-9005”,
“internalErrorMessage”: “Bracket Order Not Enabled For Script”
}

Please give solution. Thank You.

@Hardik - Can you please reply as i am also getting the error

{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ‘Bracket Order Not Enabled For Script’}, ‘data’: ‘’}

Hello @sandipkodle1999 @MukeshM

Bracket Order is disabled at times by the RMS team depending on the risk and volatility in the market. We had paused Bracket Orders and made some other changes as well for the week due to elections. You can read more about the same here : Risk Management Measures for Trading during Elections Results Announcements Week on Dhan.

Moreover, BO is not enabled for certain segments, due to liquidity and other factors

1 Like