Lean
$LEAN_TAG$
|
Defines the result for IFeeModel.GetOrderFee More...
Public Member Functions | |
OrderFee (CashAmount orderFee) | |
Initializes a new instance of the OrderFee class More... | |
virtual void | ApplyToPortfolio (SecurityPortfolioManager portfolio, OrderEvent fill) |
Applies the order fee to the given portfolio More... | |
override string | ToString () |
This is for backward compatibility with old 'decimal' order fee More... | |
Static Public Member Functions | |
static implicit | operator decimal (OrderFee m) |
This is for backward compatibility with old 'decimal' order fee More... | |
Static Public Attributes | |
static readonly OrderFee | Zero |
Gets an instance of OrderFee that represents zero. More... | |
Properties | |
CashAmount | Value [get, set] |
Gets the order fee More... | |
Defines the result for IFeeModel.GetOrderFee
Definition at line 25 of file OrderFee.cs.
QuantConnect.Orders.Fees.OrderFee.OrderFee | ( | CashAmount | orderFee | ) |
Initializes a new instance of the OrderFee class
orderFee | The order fee |
Definition at line 37 of file OrderFee.cs.
|
virtual |
Applies the order fee to the given portfolio
portfolio | The portfolio instance |
fill | The order fill event |
Reimplemented in QuantConnect.Orders.Fees.ModifiedFillQuantityOrderFee.
Definition at line 49 of file OrderFee.cs.
override string QuantConnect.Orders.Fees.OrderFee.ToString | ( | ) |
This is for backward compatibility with old 'decimal' order fee
Definition at line 57 of file OrderFee.cs.
|
static |
This is for backward compatibility with old 'decimal' order fee
Definition at line 65 of file OrderFee.cs.
|
static |
Gets an instance of OrderFee that represents zero.
Definition at line 73 of file OrderFee.cs.
|
getset |
Gets the order fee
Definition at line 31 of file OrderFee.cs.