Navigation

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

    How to modify order from Market Type in order to apply Stoploss

    General Discussion
    0
    5
    38
    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
      rohit4417k last edited by

      Hi @Moderator_3 , @Moderator_2 , @admin ,

      Suppose I am placing a order with variety : NORMAL and ordertype: MARKET , in order to place the order at the current price. Now, after some time I apply stoploss to this order using AngelOne app with help of exit button and applying stoploss and triggerprice.
      But I want to apply stoploss and triggerprice using smartapi. And I am not sure what should be the body of the request that I sent to the modifyOrder endpoint.
      Like : {
      "variety":"NORMAL",
      "orderid":"201020000000080",
      "ordertype":"STOPLOSS",
      "producttype":"INTRADAY",
      "duration":"DAY",
      "price":"0",
      "quantity":"1",
      "tradingsymbol":"SBIN-EQ",
      "symboltoken":"3045",
      "exchange":"NFO",
      "stoploss" : "210.00"
      }
      Will this work??
      Basically I am not sure what should be the ordertype, and whether we should keep price as 0 or price as stoploss value, and keep stoploss to be 0 ??

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @rohit4417k last edited by

        Hello @rohit4417k

        Kindly go through the below attached link
        https://smartapi.angelbroking.com/docs/Orders

        Regards,
        SmartAPI Team

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

          @Moderator_3 The table on documentation page says stoploss and triggerprice is only valid for BRACKET ORDER.
          I want to know if we have functionality to mention stoploss and triggerprice on normal market order or not? As it is supported on AngelOne app?

          M 1 Reply Last reply Reply Quote 0
          • M
            Moderator_3 @rohit4417k last edited by

            Hello @rohit4417k

            If the veriety is NORMAL then it won't be applicable
            But if the verietyis STOPLOSS then it is applicable

            Regards,
            SmartAPI Team

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

              @Moderator_3 Alright, Thanks a lot

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