Navigation

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

    Issue in Stoploss Order

    Python SDK
    0
    3
    54
    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.
    • N
      nunmp last edited by

      Hello Team @Moderator_1 @Moderator_2 @Moderator_3

      I'm having issue in Sl order placement

      Error logs and order params attached, i already tried multiple combinations of price and stop price, but nothing worked

      Code is working fine with limit orders, But getting issue in Stoploss Order

      [E 240925 10:51:47 smartConnect:243] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/placeOrder. Error: Difference between limit price and trigger price for SL Limit Order is beyond the exchange’s Permissible range of < 1.50 >. Consider setting the limit price to < 1.50 > or lower. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/placeOrder, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193', 'X-MACAddress': '--', 'Accept': 'application/json', 'X-PrivateKey': '----', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'variety': 'STOPLOSS', 'tradingsymbol': 'IOC-EQ', 'symboltoken': '1624', 'transactiontype': 'BUY', 'exchange': 'NSE', 'ordertype': 'STOPLOSS_LIMIT', 'producttype': 'INTRAScreenshot_2024-09-25-12-24-15-287_com.whatsapp.jpg DAY', 'duration': 'DAY', 'price': '175', 'squareoff': '0', 'stoploss': '176', 'quantity': '1'}, Response: {'status': False, 'message': 'Difference between limit price and trigger price for SL Limit Order is beyond the exchange’s Permissible range of < 1.50 >. Consider setting the limit price to < 1.50 > or lower', 'errorcode': 'AB1007', 'data': {'script': 'IOC-EQ', 'orderid': None, 'uniqueorderid': 'd2767738-546e-4989-be34-10b29ab68bef'}}

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 last edited by

        hello ,
        This is under exchange permission limit range.. For all stoploss order limit order above this is by default for all equity orders .

        https://www.angelone.in/knowledge-center/online-share-trading/error-in-sl-orders-if-limit-and-trigger-prices-beyond-allowed-range

        Thanks

        N 1 Reply Last reply Reply Quote 0
        • N
          nunmp @Moderator_3 last edited by

          @Moderator_3
          Thanks for reply ![alt text]

          Trigger price para is missing in my code, Below order para works for stoploss Order
          2125bbfd-0499-4499-bb86-d6773f0fc9c8-image.png

          #--------------------------------------------
          In doc also trigger price para is not mentioned
          https://github.com/angel-one/smartapi-python

          77b47904-e6e3-4498-bc72-b27d5c7f2dfa-image.png

          @Moderator_3 please share the updated doc link if i'm using old link

          Thanks

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