Error code 400 sent for order request timed out, it should be 500 or above.

Prabhakaran_M
Order request timed out but eventually got placed after 8 seconds. But the error code sent was 400 instead of >= 500.

Exception msg: Order request timed out. Please check the order book and confirm before placing again.
Exception code: 400

As per the doc, 400 error code corresponds to "Missing or bad request parameters or values" which should be retried only after fixing the params but in this case order placed successfully. It should be 500 or above, so that we can different time out errors from the bad request

These are the 2 orders fired @ 15:20 PM, both timed out but eventually got placed after 8 seconds. Both order requests failed with error code 400.

211008004242955
211008004242995

Please check the python client library, especially this change -
https://github.com/zerodha/pykiteconnect/commit/fef8ec92765f04bff7ba7c5fa03506f7656c6443#diff-6de4069dbaff6904a03f69550f1e663c3cda9d9e53ab21840a744325f2ce589cR912
  • anandmuralidhar
    I had the same issue for three orders placed on Oct8 at 14:59 with order IDs 211008004030299, 211008004030951, and 211008004031621.
    Please let us know a way of handling these issues in code so that we don't inadvertently place multiple orders.
    Thanks.
  • Prabhakaran_M
    @sujith @rakeshr - Would like to bring this issue on your radar. Pls check the error code sent in this case. It should not be 400.

    This is the error message -
    `Order request timed out. Please check the order book and confirm before placing again`
Sign In or Register to comment.