Sometimes TP/SL orders fail to work properly and expire.

Hello.
Sometimes TP/SL orders fail to work properly and expire.

Though not frequent, there are instances where both take_profit_market and stop_loss_market orders fail to execute and expire. How can we ensure that a market order is reliably executed when the price is reached?

The existing code implements this using the python-binance library as follows:

res = self.client.futures_create_order(symbol = "ETHUSDT",
                                       type = "TAKE_PROFIT_MARKET",
                                       side = stop_side,
                                       stopPrice = stop_price,
                                       closePosition = "true",
                                       recvWindow=10000)