Navigation

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

    Did stop loss and shorting stopped working?

    Python SDK
    0
    8
    98
    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.
    • V
      Vignesha last edited by

      Hi I'm trying to use shorting and stop loss it seems it isnt working...

      Here is my code for shorting @admin @SmartAPI-Admin can you let me know if this is the case or do you think the param is wrong?

          orderparams = {
              "variety": "NORMAL",
              "tradingsymbol": "SBIN-EQ",
              "symboltoken": "3045",
              "transactiontype": "SELL",
              "exchange": "NSE",
              "ordertype": "LIMIT",
              "producttype": "INTRADAY",
              "duration": "DAY",
              "price": "19500",
              "squareoff": "0",
              "stoploss": "0",
              "quantity": "1"
              }
          orderId=obj.placeOrder(orderparams)
      
      G D 2 Replies Last reply Reply Quote 0
      • D
        DIYD20997 @Vignesha last edited by

        @Vignesha Yes.

        V D 2 Replies Last reply Reply Quote 0
        • G
          godboleamit @Vignesha last edited by

          hey @Vignesha, if you are shorting, then stop loss order has to be with transactiontype as 'BUY'.

          V 1 Reply Last reply Reply Quote 0
          • V
            Vignesha last edited by

            @admin any update on this?
            I know lot of things are going on but could you please help with this issue? I followed the exact thing from documentation but unable to place Stop loss or Shorting order... Can you let me know if its enabled or not?

            1 Reply Last reply Reply Quote 0
            • V
              Vignesha @godboleamit last edited by

              @godboleamit Got it... Also for some reason the above param. i pasted started to work idk what i did but now i can short and give stop loss to an order...
              Thanks for the advice on this

              1 Reply Last reply Reply Quote 0
              • V
                Vignesha @DIYD20997 last edited by

                @DIYD20997 Thanks for confirming. The above param. itself somehow started to work.

                1 Reply Last reply Reply Quote 0
                • D
                  DIYD20997 @DIYD20997 last edited by

                  @DIYD20997 , @binayapattanaik,
                  Those, trades with stoploss orders from my side are squeezed at historical data & recorded with AngelOne.
                  Thanks!

                  1 Reply Last reply Reply Quote 0
                  • S
                    SRC last edited by

                    @Vignesha CAN YOU SHARE THE STOPLOSS COMMAND AS MY ORDERS ARE GETTING REJECTED WITH INVALID TRIGGER PRICE (TRIGGER PRICE IS SHOWING 0)

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