Lean  $LEAN_TAG$
QuantConnect.Orders.Fees.ConstantFeeModel Class Reference

Provides an order fee model that always returns the same order fee. More...

Inheritance diagram for QuantConnect.Orders.Fees.ConstantFeeModel:
[legend]

Public Member Functions

 ConstantFeeModel (decimal fee, string currency="USD")
 Initializes a new instance of the ConstantFeeModel class with the specified fee More...
 
override OrderFee GetOrderFee (OrderFeeParameters parameters)
 Returns the constant fee for the model in units of the account currency More...
 

Detailed Description

Provides an order fee model that always returns the same order fee.

Definition at line 24 of file ConstantFeeModel.cs.

Constructor & Destructor Documentation

◆ ConstantFeeModel()

QuantConnect.Orders.Fees.ConstantFeeModel.ConstantFeeModel ( decimal  fee,
string  currency = "USD" 
)

Initializes a new instance of the ConstantFeeModel class with the specified fee

Parameters
feeThe constant order fee used by the model
currencyThe currency of the order fee

Definition at line 34 of file ConstantFeeModel.cs.

Member Function Documentation

◆ GetOrderFee()

override OrderFee QuantConnect.Orders.Fees.ConstantFeeModel.GetOrderFee ( OrderFeeParameters  parameters)
virtual

Returns the constant fee for the model in units of the account currency

Parameters
parametersA OrderFeeParameters object containing the security and order
Returns
The cost of the order in units of the account currency

Reimplemented from QuantConnect.Orders.Fees.FeeModel.

Definition at line 46 of file ConstantFeeModel.cs.


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