How to get if Order is rejected
-
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 ??
-
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. -
@admin - Can order book return :
- status of a specific order ID
- How to check for an order placed historically , may be few days back This could be a market order or a LIMIT order.
- 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.
-
HI @ronak You can use order book().
-
@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.