Hi, I am facing issue of orders getting rejected. How can I get the reason for rejection of the order? In one case, my order got rejected when I was to close the existing trades. I was having 1 Buy and 1 Sell trade. When I executed the order to Sell the option which I had bought, it got rejected. In another case, to take new trade, the Buy order got executed while the sell order got rejected. There were enough funds as I checked the margin requirement on Kite app. Regards Vivek
To identify the exact issue, you’ll need to capture the raw error response from the order placement API request. The error remarks there will give more clarity, based on which you can investigate further and work toward resolving it.
@vivek_agg, You may refer to the exception format on Kite Connect here. Maybe enable debug logs for pykiteconnect and inspect the raw request and json response.
You may refer to the exception format on Kite Connect here.
Maybe enable debug logs for pykiteconnect and inspect the raw request and json response.