Navigation

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

    Unable to place stoploss against normal order

    Test
    0
    3
    31
    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.
    • K
      K224790 last edited by

      Re: Place order error: {"message":"Internal Error"

      Hi@admin, I'm unable to place stoploss order against my normal order in banknifty in python.
      it's giving error order cancelled by system.

      userProfile= obj.getProfile(refreshToken)
      try:

      orderparams = {
          "variety": "NORMAL",
          "orderid": '230612000243623',#orderId,
          "tradingsymbol": 'BANKNIFTY15JUN2346200CE',#order_symbol,
          "symboltoken": 37518,#order_token,
          "ordertype": "LIMIT",
          "triggerprice": 1,#stop_loss_price,
          "stoploss": 1,#stop_loss_price,
          "squareoff": 0,
          "trailingstoploss": 1
              }
      orderId = obj.modifyOrder(orderparams)
      print("The order id is: {}".format(orderId),'STOPLOSS')
      

      except Exception as e:
      print("Order placement failed: {}".format(e),'STOPLOSS NOT PLACED')
      exit_order(orderId, token_info)

      The order id is: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None} STOPLOSS

      M M 2 Replies Last reply Reply Quote 1
      • M
        Moderator_2 @K224790 last edited by

        Hi @K224790

        Apologies for delayed response.
        Kindly reverify and let us know if the issue still occurs. Please share us the client code for us to analyze further.

        Thanks & Regards,
        SmartAPI team

        1 Reply Last reply Reply Quote 0
        • M
          manoj091 @K224790 last edited by

          @K224790

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