Navigation

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

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

    Python SDK
    0
    2
    14
    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.
    • H
      hssandeep last edited by

      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

      H 1 Reply Last reply Reply Quote 0
      • H
        hssandeep @hssandeep last edited by

        @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

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