Navigation

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

    Exit Robo Order Manually

    General Discussion
    2
    7
    110
    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.
    • M
      Madhusree last edited by

      @admin
      Lets say I want to exit a position manually which is brought by robo order (target & stoploss order are still pending).

      1. If I place buy order against sell order or sell against buy, Will it exit open position?
      2. If yes, what will happen to the pending target & stoploss order?
      3. Will it cancelled automatically or should I cancel it manually?
      A 1 Reply Last reply Reply Quote 0
      • A
        admin @Madhusree last edited by

        HII @Madhusree Above mentioned scenarios need to be tested its a user specific query.

        M 1 Reply Last reply Reply Quote 0
        • M
          Madhusree @admin last edited by

          @admin I tested above use case

          1. Placing buy against sell or sell against buy is not exiting the open position (Brought by Robo).
          2. Tried to cancel the pending/open target & stoploss orders (Robo), Which returns the status SUCCESS but the orders are still open not cancelled.
          M 1 Reply Last reply Reply Quote 0
          • M
            Madhusree @Madhusree last edited by

            @admin Could you please help me with this? To exit position brought via robo order

            A 1 Reply Last reply Reply Quote 0
            • A
              admin @Madhusree last edited by

              HI @Madhusree You need to use parent order id to cancel the robo order.
              eg:
              {
              "variety":"robo",
              "orderid":"parent order id"
              }

              L 1 Reply Last reply Reply Quote 0
              • L
                Linux Smiths @admin last edited by

                @admin If it allows cancelling like this then how will the system perform auto-squareoff at 3:10PM, in case I cancel the open legs of the ROBO order but forget to place the reverse order to close the open position (or the reverse order placement fails for some reason). I think the system should not allow cancelling the two open orders for this reason and we need a "close order" API to atomically/correctly do this.

                L 1 Reply Last reply Reply Quote 0
                • L
                  Linux Smiths @Linux Smiths last edited by

                  @admin, nvm I tried it out and I see that we need to cancel the main order (though it's status is complete).

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