# Bracket limit order time\_in\_force applies to TP and SL orders too?

**URL:** <https://forum.alpaca.markets/t/bracket-limit-order-time-in-force-applies-to-tp-and-sl-orders-too/7334>\
**Category:** Alpaca Trading\
**Created:** [November 6, 2021, 12:27pm UTC](https://forum.alpaca.markets/t/bracket-limit-order-time-in-force-applies-to-tp-and-sl-orders-too/7334 "2021-11-06T12:27:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timkofu](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@timkofu](https://forum.alpaca.markets/u/timkofu)\
**Post date:** [November 6, 2021, 12:27pm UTC](https://forum.alpaca.markets/t/bracket-limit-order-time-in-force-applies-to-tp-and-sl-orders-too/7334/1 "2021-11-06T12:27:09Z")

</div>

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”?

---

<div class="post-metadata">

**Author:** ![timkofu](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@timkofu](https://forum.alpaca.markets/u/timkofu)\
**Post date:** [November 9, 2021, 11:46am UTC](https://forum.alpaca.markets/t/bracket-limit-order-time-in-force-applies-to-tp-and-sl-orders-too/7334/2 "2021-11-09T11:46:30Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![timkofu](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@timkofu](https://forum.alpaca.markets/u/timkofu)\
**Post date:** [November 9, 2021, 2:47pm UTC](https://forum.alpaca.markets/t/bracket-limit-order-time-in-force-applies-to-tp-and-sl-orders-too/7334/3 "2021-11-09T14:47:31Z")

</div>

`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.

---

<div class="post-metadata">

**Author:** ![sebby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/sebby/32/3428_2.png) [@sebby](https://forum.alpaca.markets/u/sebby)\
**Post date:** [January 19, 2022, 4:40am UTC](https://forum.alpaca.markets/t/bracket-limit-order-time-in-force-applies-to-tp-and-sl-orders-too/7334/4 "2022-01-19T04:40:11Z")

</div>

Chiming in to say it’d be great to be able to set time\_in\_force for each leg in [a bracket order](https://alpaca.markets/docs/api-documentation/api-v2/orders/#request-a-new-order).

Thanks @timkofu for posting a workaround.
