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



  • 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