Error codes

Sumit
Hi,

If my orders are getting rejected for reasons like insufficient margin, wrong product code then how can we differentiate between these rejected statuses in python client?
Do we have any error codes? or we have to use status message which is very descriptive?


Thanks & Regards
Sumit
  • Kailash
    @Sumit , when you place an order, it'll only fail if a) you sent a wrong parameter b) there's some issue in the backend. For all other cases (insufficient margin etc.), you'll still get an order id after succcessful placement. What happens to the order after that doesn't matter. You can get the status of a placed order by using the orders() API call or by using the Postback webhook.
Sign In or Register to comment.