Hi, Is there a chance of getting Data Exception or Network Exception while placing order through python api? If yes, Is that placed order request lost or not?
In case placed order request is lost, Is it safe to place new order?
It is possible in any system, right? You need to catch the exception and handle it gracefully. If you get exception while fetching data, you can add a delay and retry but for a write request, you need to introspect and then take the necessary action. One can't just retry as it may lead to duplicate write.
Basically fetch orderbook and check before doing a retry. In case you get 4xx error then it might be Input exception, you will have to see what is the error and send appropriate params.