OrderFee
QuantConnect.Orders.Fees.OrderFee
OrderFee(order_fee: CashAmount)
Bases: Object
Defines the result for IFeeModel.get_order_fee
Initializes a new instance of the OrderFee class
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
order_fee
|
CashAmount
|
The order fee |
required |
apply_to_portfolio
apply_to_portfolio(
portfolio: SecurityPortfolioManager, fill: OrderEvent
) -> None
Applies the order fee to the given portfolio
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
portfolio
|
SecurityPortfolioManager
|
The portfolio instance |
required |
fill
|
OrderEvent
|
The order fill event |
required |
to_string
to_string() -> str
This is for backward compatibility with old 'decimal' order fee