> ## Documentation Index
> Fetch the complete documentation index at: https://docs.everstrike.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Time in Force: GTC, IOC and FOK Orders on Everstrike

> Time in force decides how long an order stays active. Learn when to use Good Till Cancelled, Immediate or Cancel, and Fill or Kill.

**Time in force** controls what happens to the part of an order that can't fill straight away. Set it under **Advanced** in the order form.

| Time in force | What happens |
| - | - |
| **Good Till Cancelled (GTC)** | Any unfilled part rests in the order book until it fills or you cancel it. This is the default. |
| **Immediate or Cancel (IOC)** | Fills as much as it can immediately; the rest is cancelled. |
| **Fill or Kill (FOK)** | Fills the whole quantity immediately, or nothing at all. |

## When to use each

* **GTC** for normal limit orders you're willing to wait on.
* **IOC** when you want what's available at your price now, and nothing left behind in the book.
* **FOK** when a partial fill is worse than no fill, for example when an order is one leg of a larger trade.

## Examples

You place a limit buy for 10 units at \$100. Only 4 units are offered at \$100 or less.

* **GTC:** 4 units fill. An order for the remaining 6 rests at \$100.
* **IOC:** 4 units fill. The remaining 6 are cancelled.
* **FOK:** nothing fills. The whole order is cancelled.

![A limit buy of 10 with 4 available, under GTC, IOC and FOK](https://mintcdn.com/everstrike-50e7a7f9/zD8Yl4qdQhHNoMT1/images/help/time-in-force.png?fit=max\&auto=format\&n=zD8Yl4qdQhHNoMT1\&q=85\&s=fd333d0064c2e4bb54bf41335a726c45)

The same order under each time in force.

> [!NOTE]
>
> Time in force applies to the order once it's placed. A [trigger order](https://docs.everstrike.io/trading/order-types.md#trigger-orders) waits for its trigger first, then follows its time in force.

Your orders' time in force is shown in each order's details on the [Order History](https://docs.everstrike.io/trading/order-history.md) page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.