Skip to content

FeeModelExtensions

QuantConnect.Orders.Fees.FeeModelExtensions

Bases: Object

Provide extension method for IFeeModel to enable backwards compatibility of invocations.

get_order_fee

get_order_fee(
    model: IFeeModel, security: Security, order: Order
) -> float

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.