Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. K224790
    K
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    K224790

    @K224790

    1
    Reputation
    1
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    K224790 Follow

    Best posts made by K224790

    • Unable to place stoploss against normal order

      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

      posted in Bugs
      K
      K224790

    Latest posts made by K224790

    • Unable to place stoploss against normal order

      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

      posted in Bugs
      K
      K224790