Lean  $LEAN_TAG$
QuantConnect.Orders.TimeInForces.GoodTilCanceledTimeInForce Class Reference

Good Til Canceled Time In Force - order does never expires More...

Inheritance diagram for QuantConnect.Orders.TimeInForces.GoodTilCanceledTimeInForce:
[legend]

Public Member Functions

override bool IsOrderExpired (Security security, Order order)
 Checks if an order is expired More...
 
override bool IsFillValid (Security security, Order order, OrderEvent fill)
 Checks if an order fill is valid More...
 

Additional Inherited Members

- Static Public Attributes inherited from QuantConnect.Orders.TimeInForce
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, TimeInForceGoodTilDate => (DateTime expiry) => new GoodTilDateTimeInForce(expiry)
 Gets a GoodTilDateTimeInForce instance More...
 

Detailed Description

Good Til Canceled Time In Force - order does never expires

Definition at line 23 of file GoodTilCanceledTimeInForce.cs.

Member Function Documentation

◆ IsOrderExpired()

override bool QuantConnect.Orders.TimeInForces.GoodTilCanceledTimeInForce.IsOrderExpired ( Security  security,
Order  order 
)
virtual

Checks if an order is expired

Parameters
securityThe security matching the order
orderThe order to be checked
Returns
Returns true if the order has expired, false otherwise

Implements QuantConnect.Orders.TimeInForce.

Definition at line 31 of file GoodTilCanceledTimeInForce.cs.

◆ IsFillValid()

override bool QuantConnect.Orders.TimeInForces.GoodTilCanceledTimeInForce.IsFillValid ( Security  security,
Order  order,
OrderEvent  fill 
)
virtual

Checks if an order fill is valid

Parameters
securityThe security matching the order
orderThe order to be checked
fillThe order fill to be checked
Returns
Returns true if the order fill can be emitted, false otherwise

Implements QuantConnect.Orders.TimeInForce.

Definition at line 43 of file GoodTilCanceledTimeInForce.cs.


The documentation for this class was generated from the following file: