Navigation

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

    Unable to Place Stop Loss Order

    Java SDK
    5
    50
    440
    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.
    • J
      jainullah last edited by jainullah

      Hello Team ,
      I am unable to establish the connection using the latest update of smartapi. Please find the below image of the error.

      Happy to connect at 8919373818. Please resolve the issue ASAP !!

      FYI - @admin

      Screenshot 2021-05-18 at 11.30.27 AM.png

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

        Hi @Reddy we have noted this we will update you after coordinating with our team.

        1 Reply Last reply Reply Quote 0
        • J
          jainullah last edited by

          Hello @admin
          Just wanted to check if this is fixed or I can shift to Zerodha/ Alica Blue for automated trading !!
          Trying to follow up for a long time.

          Regards,
          Sai Teja Reddy,
          8919373818

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

            Hi @Reddy As discused we asked you to update r sdk and try to use the sl order.

            1 Reply Last reply Reply Quote 0
            • J
              jainullah last edited by jainullah

              Hey @admin

              I have downloaded the latest version and installed it. I am getting the error with ipconfig and flagged the same issue multiple time. It would be great if you can connect and resolve the issue. If I am not wrong I have shared the working code of it in the last meeting but the issue is still not fixed.

              Happy to connect at 8919373818 !!

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

                HI @Reddy we will connect you today in market hours.

                1 Reply Last reply Reply Quote 0
                • J
                  jainullah last edited by

                  Hey @admin
                  As discussed can you please let me know if the new version is ready to use. I am waiting for your response.

                  S A 2 Replies Last reply Reply Quote 0
                  • S
                    Surya 1 @jainullah last edited by

                    @Reddy

                    which operating system are you using ? Looks like R is failing at ipconfig. My guess is that you may be using some flavour of linux in which output is not compatible. Only a guess work..

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

                      Hi @Reddy Yes .

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

                        hi @Reddy Have you updated your sdk and tried..?

                        1 Reply Last reply Reply Quote 0
                        • J
                          jainullah last edited by jainullah

                          Hey @admin
                          I have updated my SDK and had to do a few changes in the connection.R file. Mainly publicip, localip and mac address. Now I am able to place create a connection. I am able to get the candle_data and place the Stop Loss order. However, a new issue has been raised. I am not able to place the LImit orders and Market orders which was working fine earlier. Please find the below parameters and error.

                          Parameters :

                          order_place <- place_order(object = session_data,
                          variety= "NORMAL",
                          tradingsymbol= "BANDHANBNK-EQ",
                          symboltoken= "2263",
                          transactiontype= "BUY",
                          exchange= "NSE",
                          ordertype= "SL-M",
                          producttype= "INTRADAY",
                          duration= "DAY",
                          price= 405,
                          squareoff= 0,
                          stoploss= 0,
                          quantity= 100
                          )

                          Error :

                          Error in place_order(object = session_data, variety = "NORMAL", tradingsymbol = "BANDHANBNK-EQ", :
                          unused arguments (squareoff = 0, stoploss = 0)

                          ![0_1622605272879_Screenshot 2021-06-02 at 9.10.16 AM.png](Uploading 100%)

                          A 2 Replies Last reply Reply Quote 0
                          • A
                            admin @jainullah last edited by

                            Hi @Reddy ok we will get back to you on this.

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

                              HI @Reddy kindly refer below values for order type:

                              MARKET
                              LIMIT
                              STOPLOSS_LIMIT
                              STOPLOSS_MARKET

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                jainullah @admin last edited by

                                @admin
                                I have tried the below parameters and it is still not working.

                                order_place <- place_order(object = session_data,
                                variety= "NORMAL",
                                tradingsymbol= "BANDHANBNK-EQ",
                                symboltoken= "2263",
                                transactiontype= "BUY",
                                exchange= "NSE",
                                ordertype = "LIMIT",
                                producttype= "INTRADAY",
                                duration= "DAY",
                                price= 300,
                                squareoff= "400",
                                stoploss= "360",
                                quantity= 100000
                                )

                                Getting the error :
                                Error in place_order(object = session_data, variety = "NORMAL", tradingsymbol = "BANDHANBNK-EQ", :
                                unused arguments (squareoff = "400", stoploss = "360")

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

                                  @Reddy said in Unable to Place Stop Loss Order:

                                  order_place <- place_order(object = session_data,
                                  variety= "NORMAL",
                                  tradingsymbol= "BANDHANBNK-EQ",
                                  symboltoken= "2263",
                                  transactiontype= "BUY",
                                  exchange= "NSE",
                                  ordertype = "LIMIT",
                                  producttype= "INTRADAY",
                                  duration= "DAY",
                                  price= 300,
                                  squareoff= "400",
                                  stoploss= "360",
                                  quantity= 100000
                                  )
                                  Getting the error :
                                  Error in place_order(object = session_data, variety = "NORMAL", tradingsymbol = "BANDHANBNK-EQ", :
                                  unused arguments (squareoff = "400", stoploss = "360")

                                  Please go thorugh the above parameters again.

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    jainullah @admin last edited by

                                    @admin
                                    Bro I have given LIMIT ordertype only. It was running fine earlier.

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

                                      Hi @Reddy prior to this also have you you stoploss and squareoff as mentioned above.?

                                      J 1 Reply Last reply Reply Quote 0
                                      • J
                                        jainullah @admin last edited by jainullah

                                        @admin
                                        Yeah, the stoploss and squareoff parameters were expected if I want to place a limit/market order.
                                        However, If I remove those two parameters then I am getting :
                                        ERROR=No method as JSON S3 class: name Http Exception Occured

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

                                          Hi @Reddy Our team will connect you soon to resolve your query.

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

                                            Hi @Reddy The issue has been fixed by the team.Kindly revert us need any assistance.

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