Unable to apply STOPLOSS for options in AngelOne UI through SmartSDK code, anyone has solved this issue?


  • Folks,
    I am stuck at this particular point while creating a STOPLOSS trade for BANKNIFTY options trade.

    The trade goes through but the problem is the Angle Broking UI where i am expecting the STOPLOSS order to be showing up under "Open Orders" but doesn't show-up anything

    If I go to "VIEW ORDER HISTORY" it shows a REJECTED order that says "Reason: 16408 : Trigger price entered has invalid characters"

    to test, I tried with all datatypes (float, integer, string etc) but not been successful.

    Here is a sample code of "orderparams" that was executed

    orderparams = {
    "variety": "STOPLOSS",
    "tradingsymbol": "BANKNIFTY12JAN2344500CE",
    "symboltoken": str(40774),
    "exchange": "NFO",
    "transactiontype": "SELL",
    "ordertype": "STOPLOSS_LIMIT",
    "quantity": "25",
    "producttype": "CARRYFORWARD",
    "price": slprice,
    "trigger_price": triggerPrice,
    "stoploss": "0",
    "duration": "DAY",
    "squareoff": "0"
    }

    Can anyone of you help me find out where the problem is?
    I have attached the screenshot for better understanding of the problem

    STOPLOSS order error on AngelOne UI01012023.png


  • @hssandeep Hello Administrator, can you please respond to this message? I guess there is no solution for this as hence no one has responded. If that is the case, i rest my case but either way please do respond
    Thanks