Set TP/SL when open position (long/short) in Hedge Mode on Binance (usdm) : not cancel when hit

In Hedge Mode, when set TP/SL : it not cancel orders (TP/SL) if 1 of 2 was hit or position was closed. I think missing params: closePosition=true and timeInForce=GTE_GTC → Please check and fix it. Thank you!

You mention that the TP is not cancelled if the SL is hit?

Yes, and the SL is not cancelled if the TP is hit

That is correct. Binance does not offer TP or SL features so when you send this params, we automatically create limit and stop orders for you. You will need to send a cancel alert once the trade is closed.

If you are using a strategy with action as strategy.markert_position, you can omit the SL and TP and closing will happen automatically.

Here is more