Lean  $LEAN_TAG$
QuantConnect.Orders.OrderExtensions Class Reference

Provides extension methods for the Order class and for the OrderStatus enumeration More...

Static Public Member Functions

static bool IsClosed (this OrderStatus status)
 Determines if the specified status is in a closed state. More...
 
static bool IsOpen (this OrderStatus status)
 Determines if the specified status is in an open state. More...
 
static bool IsFill (this OrderStatus status)
 Determines if the specified status is a fill, that is, OrderStatus.Filled order OrderStatus.PartiallyFilled More...
 
static bool IsLimitOrder (this OrderType orderType)
 Determines whether or not the specified order is a limit order More...
 
static bool IsStopOrder (this OrderType orderType)
 Determines whether or not the specified order is a stop order More...
 

Detailed Description

Provides extension methods for the Order class and for the OrderStatus enumeration

Definition at line 23 of file OrderExtensions.cs.

Member Function Documentation

◆ IsClosed()

static bool QuantConnect.Orders.OrderExtensions.IsClosed ( this OrderStatus  status)
static

Determines if the specified status is in a closed state.

Parameters
statusThe status to check
Returns
True if the status is OrderStatus.Filled, OrderStatus.Canceled, or OrderStatus.Invalid

Definition at line 30 of file OrderExtensions.cs.

◆ IsOpen()

static bool QuantConnect.Orders.OrderExtensions.IsOpen ( this OrderStatus  status)
static

Determines if the specified status is in an open state.

Parameters
statusThe status to check
Returns
True if the status is not OrderStatus.Filled, OrderStatus.Canceled, or OrderStatus.Invalid

Definition at line 42 of file OrderExtensions.cs.

◆ IsFill()

static bool QuantConnect.Orders.OrderExtensions.IsFill ( this OrderStatus  status)
static

Determines if the specified status is a fill, that is, OrderStatus.Filled order OrderStatus.PartiallyFilled

Parameters
statusThe status to check
Returns
True if the status is OrderStatus.Filled or OrderStatus.PartiallyFilled, false otherwise

Definition at line 53 of file OrderExtensions.cs.

◆ IsLimitOrder()

static bool QuantConnect.Orders.OrderExtensions.IsLimitOrder ( this OrderType  orderType)
static

Determines whether or not the specified order is a limit order

Parameters
orderTypeThe order to check
Returns
True if the order is a limit order, false otherwise

Definition at line 63 of file OrderExtensions.cs.

◆ IsStopOrder()

static bool QuantConnect.Orders.OrderExtensions.IsStopOrder ( this OrderType  orderType)
static

Determines whether or not the specified order is a stop order

Parameters
orderTypeThe order to check
Returns
True if the order is a stop order, false otherwise

Definition at line 75 of file OrderExtensions.cs.


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