Navigation

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

    How to add stoploss and target in a single order payload

    Python SDK
    2
    2
    18
    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.
    • P
      pravilraj last edited by pravilraj

      I am facing an issue while placing ROBO (Bracket) orders for SENSEX options using SmartAPI. Whenever I try to place a ROBO order for BFO exchange, I receive the following error: "ROBO orders are not available on this exchange. Please choose a different exchange or order type to proceed."
      order payload used: { "variety": "ROBO", "tradingsymbol": "SENSEX2612284400CE", "symboltoken": "1171534", "transactiontype": "BUY", "exchange": "BFO", "ordertype": "LIMIT", "producttype": "INTRADAY", "duration": "DAY", "price": "100", "quantity": "20", "squareoff": "40", "stoploss": "20" }
      I understand from the error message that ROBO orders are not supported for the BFO segment via API. However, I would like official clarification on the following points:

      1. Is ROBO / Bracket order permanently disabled for SENSEX and BFO in SmartAPI?
      2. If yes, what is the recommended API-based method to place Entry, Stoploss, and Target orders together?
      A 1 Reply Last reply Reply Quote 0
      • A
        algo_trading_50 @pravilraj last edited by

        @pravilraj For the time being, you can try storing stoploss and target orders in your trading bot database locally and subscribing to market data feed of the instrument. Often has less slippages than bracket orders, if implemented correctly.

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