Bracket limit order time_in_force applies to TP and SL orders too?

I have had this experience where I submit a bracket limit order with time_in_force="day", it gets filled but, the next day the TP and SL orders are cancelled. It seems the time_in_force is applying to the TP SL limit (and stop) orders too?

If so, is it possible to have the main order TIF be “day” and the TP SL orders TIF be “gtc”?

is it possible to have the main order TIF be “day” and the TP SL orders TIF be “gtc”?

Simulated this behavior by cancelling any unfilled market orders before running today’s trades. It works well as the only orders that should be in the list returned by list_orders are of type limit and stop_limit if previous market orders were filled successfully.

But with this, I still don’t get to open a position with a bracket order at a desired price.

list_orders(nested=True) returns only limit orders that have not been filled. This solves it for me.

I can make limit orders with a TIF of gtc and be able to cancel any that didn’t fill in the last trading session.