Hi, While placing a cover order I got "400 - Order request timed out" KiteException. The program assumed that the order request had failed and retried multiple times in quick succession. Each time getting the same exception. In reality 3 of the 5 attempts tried went through and the orders were placed. I suspect that the other two calls were rejected because the margin must have been exhausted. This is a big problem because first, multiple unwanted orders got placed. Second my system wasn't even aware that the orders had been placed and as a result couldn't manage the stoploss on those orders resulting in those trades yielding unnecessary losses.
How are we supposed to handle this exception? What assumptions should we make if we get this exception? How can we check if the order has actually gone through, since we don't even know the order id?