Question

How long do orders stay open after being placed via Sandwich?

Answer

Orders remain open for a period prescribed by the Time In Force applied. Sandwich supports Good-til-Cancel (GTC)*, Immediate-or-Cancel (IOC) and Fill-or-Kill (FOK) orders.

Orders remain open for a period prescribed by the Time In Force applied. 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.