FeeModelExtensions
QuantConnect.Orders.Fees.FeeModelExtensions
Bases: Object
Provide extension method for IFeeModel to enable backwards compatibility of invocations.
get_order_fee
Gets the order fee associated with the specified order. This returns the cost of the transaction in the account currency
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
IFeeModel
|
The fee model |
required |
security
|
Security
|
The security matching the order |
required |
order
|
Order
|
The order to compute fees for |
required |
Returns:
| Type | Description |
|---|---|
float
|
The cost of the order in units of the account currency. |