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.
    • 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
                      • J
                        jainullah @admin last edited by

                        @admin

                        AS discussed I am not able to place the Market, Limit, Robo order and getting the below error :

                        Error in place_order(object = session_data, variety = "NORMAL", tradingsymbol = "SBIN-EQ", :
                        unused arguments (squareoff = "0", stoploss = "0")Screenshot 2021-06-03 at 9.45.49 PM.png

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

                          HI @Reddy Have you incorporated the new change which are done yesterday.

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

                            @admin
                            Yeah bro I have updated the SDK with the latest version and still unable to place the market order. Can you please test from your end before publishing?

                            PFA error Screenshot 2021-06-04 at 10.22.48 AM.png

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

                              Hi @Reddy we have fixed this issue you can check now.

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

                                @admin Sure I will check with the latest code.

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

                                  @admin
                                  I have checked with the latest code and the issue is still the same. Can you please let me know if this is tested and working fine from your end?

                                  Happy to connect at market hours tomorrow.

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

                                    @admin

                                    This is pending since a long ago and the code didn't work properly any time. Please fix the issue on priority. Happy to escalate if you need any further assistance.

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

                                      Hi @Reddy have you update the sdk and executed the order..?

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

                                        hi @Reddy we have fixed this you can check now.

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

                                          HI @Snehal Have you filled the below form..?

                                          1 Reply Last reply Reply Quote 0
                                          • N
                                            NikhilGaware last edited by

                                            my Inputs
                                            {"tradingsymbol": "BANKNIFTY12JAN2341800PE", "symboltoken": "40708", "quantity": 25, "variety": "STOPLOSS", "transactiontype": "BUY", "ordertype": "STOPLOSS_LIMIT", "producttype": "CARRYFORWARD", "duration": "DAY", "exchange": "NFO", "triggerprice": "85.0"}

                                            Error :
                                            {'status': False, 'message': 'INVALID PARAMETERS', 'errorcode': 'AB1007', 'data': {'script': 'BANKNIFTY12JAN2341800PE', 'orderid': None}}

                                            Please hep me to solve this issue

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