Question

What is Time In Force? What Time In Force options does Sandwich have?

Answer

Time in force is a special instruction used when placing a trade to indicate how long an order will remain active before it is executed or expires. Sandwich supports Good-til-Cancel (GTC)*, Immediate-or-Cancel (IOC) and Fill-or-Kill (FOK) orders.

Time in force is a special instruction used when placing a trade to indicate how long an order will remain active before it is executed or expires. Sandwich supports Good-til-Cancel (GTC)*, Immediate-or-Cancel (IOC) and Fill-or-Kill (FOK) orders.

GTC: an order that stays on the order book until it is completely filled, or canceled.

*Not all exchanges support GTC orders. The alternative is a Good-til-Day (GTD) order which creates a time limit on the order for cancelation on a certain date. If the exchange does not support GTC, Sandwich will convert your order to a GTD order with the latest possible end date.

IOC: an order that must be executed immediately. Any portion of an IOC order that cannot be filled immediately will be canceled. This can result in partial fills but will never result in an order persisting on the order book.

FOK: an order that is directed to be executed immediately at the market or a specified price or canceled if not filled. The order must be filled in its entirety, or removed from the order book. This should never result in a partial fill.