Navigation

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

    Modify Existing STOPLOSS order not working

    Python SDK
    3
    16
    114
    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.
    • R
      rahul4019 last edited by

      @admin!! any update on this?

      @rajanprabu have you faced this issue earlier?

      1 Reply Last reply Reply Quote 0
      • S
        Surya 1 @rahul4019 last edited by

        @PandaTrade

        DO you need orderid for this ?

        R 1 Reply Last reply Reply Quote 0
        • R
          rahul4019 @Surya 1 last edited by rahul4019

          @rajanprabu yes..
          it is for updating the stoploss price of stoploss market order that exists in the system.
          So effectively i am fetching the SL-M order already in the system and changing that order with a new price.

          S 1 Reply Last reply Reply Quote 0
          • S
            Surya 1 @rahul4019 last edited by

            @PandaTrade

            Understood.. looks like you need to include tradingsymbol.

            Screenshot 2021-06-28 at 13.18.39.png

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

              Hi @PandaTrade We will test it from our side and update you..

              R 1 Reply Last reply Reply Quote 0
              • R
                rahul4019 @admin last edited by

                @rajanprabu Thanks for the input . Yes it has worked.
                In the process i discovered a bug.
                As i try to modify the SL_MARKET order the same thing is not reflected in the web platform.
                0b61704e-136f-45e2-aace-b956608406be-image.png

                R 1 Reply Last reply Reply Quote 0
                • R
                  rahul4019 @rahul4019 last edited by

                  @PandaTrade Here you can see the Trigger price is shown as 0 Which is not correct.

                  1 Reply Last reply Reply Quote 0
                  • R
                    rahul4019 last edited by

                    @admin
                    Can you fix this issue? Looks like the order is going to the system but is is not taking the effect it should. I gave a price to test the SL-M , even though the price is reached the order is not executed.

                    1 Reply Last reply Reply Quote 0
                    • R
                      rahul4019 last edited by

                      Hello @admin,
                      The modify order API is not working for NFO segment as well.
                      I am trying to change my stoploss.
                      The response seems to be SUCCESS but when i check it in the web platform there is this error.
                      70fa191d-b4e5-480a-b496-c1adb36b0739-image.png

                      Here is the payload i am using-
                      payload = {"variety": "STOPLOSS",
                      "orderid": ORDERID,
                      "ordertype": "STOPLOSS_MARKET",
                      "producttype": PRODUCTTYPE,
                      "duration": "DAY",
                      "price": 220.00,
                      "quantity": "2",
                      "tradingsymbol": SYMBOL,
                      "symboltoken": SYMBOLTOKEN,
                      "exchange": "NFO"
                      }

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

                        HI @PandaTrade We will test it and update you on this.

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          rahul4019 @admin last edited by

                          @admin What is the timeline for your testing?

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            rahul4019 @rahul4019 last edited by rahul4019

                            @admin well i have figured out what had happened.
                            Would still want you to figure the problem and then update your documentation and error codes.

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

                              HI @PandaTrade As per the input details the You are entering value in price parameter instead of triggerprice.
                              For Stoploss orders the trigger price is mandatory.

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                rahul4019 @admin last edited by

                                @admin Yes i have corrected that.
                                But i did not get any error code for the same.. Please enhance to return proper error code.

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

                                  HI @PandaTrade We have noted this.

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