Lean
$LEAN_TAG$
|
Time In Force - defines the length of time over which an order will continue working before it is canceled More...
Public Member Functions | |
abstract bool | IsOrderExpired (Security security, Order order) |
Checks if an order is expired More... | |
abstract bool | IsFillValid (Security security, Order order, OrderEvent fill) |
Checks if an order fill is valid More... | |
Static Public Attributes | |
static readonly TimeInForce | GoodTilCanceled = new GoodTilCanceledTimeInForce() |
Gets a GoodTilCanceledTimeInForce instance More... | |
static readonly TimeInForce | Day = new DayTimeInForce() |
Gets a DayTimeInForce instance More... | |
static Func< DateTime, TimeInForce > | GoodTilDate => (DateTime expiry) => new GoodTilDateTimeInForce(expiry) |
Gets a GoodTilDateTimeInForce instance More... | |
Time In Force - defines the length of time over which an order will continue working before it is canceled
Definition at line 28 of file TimeInForce.cs.
|
pure virtual |
Checks if an order is expired
security | The security matching the order |
order | The order to be checked |
Implements QuantConnect.Interfaces.ITimeInForceHandler.
Implemented in QuantConnect.Orders.TimeInForces.GoodTilDateTimeInForce, QuantConnect.Orders.TimeInForces.DayTimeInForce, and QuantConnect.Orders.TimeInForces.GoodTilCanceledTimeInForce.
|
pure virtual |
Checks if an order fill is valid
security | The security matching the order |
order | The order to be checked |
fill | The order fill to be checked |
Implements QuantConnect.Interfaces.ITimeInForceHandler.
Implemented in QuantConnect.Orders.TimeInForces.GoodTilDateTimeInForce, QuantConnect.Orders.TimeInForces.DayTimeInForce, and QuantConnect.Orders.TimeInForces.GoodTilCanceledTimeInForce.
|
static |
Gets a GoodTilCanceledTimeInForce instance
Definition at line 33 of file TimeInForce.cs.
|
static |
Gets a DayTimeInForce instance
Definition at line 38 of file TimeInForce.cs.
|
static |
Gets a GoodTilDateTimeInForce instance
Definition at line 43 of file TimeInForce.cs.