Hi this is something I do have workarounds for, but I feel like it could protect algorithms better if this was provided implicitly by Q.
One way to do it is I would set a limit order at my take profit, and a stop order at my stop loss. I would manually cancel the other order if one of them was executed on the next handle_data event. However, it's possible that both orders could be triggered inside the same minute depending on volatility.
The way I settled with is to monitor the price myself, and place the order when the price target is reached. However, that means I could miss some important prices.