Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    TrailingStoploss in ROBO Order

    Python SDK
    1
    1
    1
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      akshita0508 last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post