Navigation

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

    How to get if Order is rejected

    Python SDK
    3
    5
    71
    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.
    • R
      ronak last edited by

      Purchase API response doesnt include details if an order is rejected while executing and its reason for rejection. This is needed to better handle the response flow in my code.

      sample response for a rejected offer:
      {"status":true,"message":"SUCCESS","errorcode":"","data":{"script":"ITC-EQ","orderid":"210619000005957"}}

      Is there any other API apart from place order , which can be used to know the immediate status of an order ID ??

      O A 2 Replies Last reply Reply Quote 0
      • O
        olp @ronak last edited by

        @ronak said in How to get if Order is rejected:

        API response

        API Response of place order always give me success message if order is accepted by system.
        You can get order status to check order is executed or not.
        https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/

        If order is rejected or cancelled, you also got custom message in "Text" Field of above API.

        Suggestion : Use POST-BACK URL to get Updated Order Status.

        1 Reply Last reply Reply Quote 0
        • A
          admin @ronak last edited by

          HI @ronak You can use order book().

          R 1 Reply Last reply Reply Quote 0
          • R
            ronak @admin last edited by

            @admin - Can order book return :

            1. status of a specific order ID
            2. How to check for an order placed historically , may be few days back This could be a market order or a LIMIT order.
            3. How do I get to know the rejection reason of a purchase order if rejection is during execution and not during placing the purchase order.
            A 1 Reply Last reply Reply Quote 0
            • A
              admin @ronak last edited by

              Hi @ronak 1) Currently we donot provide any api for executed order a day ago
              2)Also you can check the status of order id by calling order book()
              3) API call to check specific order id status is not available.

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