Table of Contents

Enum TimeInForce

Namespace
WhalesSecret.TradeScriptLib.Entities
Assembly
WhalesSecret.TradeScriptLib.dll

Specifies how long an order is supposed to be active.

public enum TimeInForce
Extension Methods

Fields

GoodTillCancel = 0

Order is active until it is filled or until the order is cancelled by the user who placed it.

This is the most common option.

ImmediateOrCancelOrder = 1

Exchange order matching engine takes the order and attempts to match it with existing orders to fill it as much as possible. There are three possible outcomes:

  • The order is fully filled.
  • The order is partially filled and the rest of the order is canceled.
  • The order is canceled because it could not be matched with any existing order.
FillOrKill = 2

Either it is possible to fill the order completely and the exchange order matching engine does so, or the matching engine cancels the order without any filling at all.

This option is similar to ImmediateOrCancelOrder with the twist that user requires "all or nothing".

Other = 3

An unsupported value.

Exchanges can support more TimeInForce options than Whale's Secret supports. Any such value will be mapped to this value.

User is not supposed to use this value in her code.

See Also