TrailingStoploss in ROBO Order


  • Hi @admin,

    Could you please help me understand why trailingStopLoss is not working in the below ROBO order?

    I am placing a BO (Bracket Order) with variety = "ROBO" and producttype = "BO" using a normal BUY ROBO order (not STOPLOSS_LIMIT).

    Even though I am passing trailingStopLoss: "5", the trailing stop loss does not seem to get applied.

    Here is my order payload:

    orderparams = {
        "variety": "ROBO",
        "tradingsymbol": symbol,
        "symboltoken": str(token),
        "transactiontype": "BUY",
        "exchange": EXCHANGE,
        "ordertype": "LIMIT",
        "producttype": "BO",
        "duration": "DAY",
        "price": str(entry_price),
        "squareoff": "10",
        "stoploss": "2",
        "trailingStopLoss": "5",
        "quantity": str(qty),
    }
    

    Could you please confirm:

    1. Is trailingStopLoss supported for ROBO BO orders in SmartAPI?
    2. Is the correct parameter name trailingStopLoss or should it be something else like trailing_stoploss?
    3. Are there any restrictions or minimum values required for trailing stop loss in ROBO orders?

    Thank you.


  • Dear @admin , I wanted to kindly follow up on my earlier request as I haven’t received a response yet. Please let me know if any additional information is required from my side