ConstantFeeModel
QuantConnect.Orders.Fees.ConstantFeeModel
ConstantFeeModel(fee: float, currency: str = 'USD')
Bases: FeeModel
Provides an order fee model that always returns the same order fee.
Initializes a new instance of the ConstantFeeModel class with the specified fee
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fee
|
float
|
The constant order fee used by the model |
required |
currency
|
str
|
The currency of the order fee |
'USD'
|
get_order_fee
get_order_fee(parameters: OrderFeeParameters) -> OrderFee
Returns the constant fee for the model in units of the account currency
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parameters
|
OrderFeeParameters
|
A OrderFeeParameters object containing the security and order |
required |
Returns:
| Type | Description |
|---|---|
OrderFee
|
The cost of the order in units of the account currency. |