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.