FeeModelPythonWrapper
QuantConnect.Python.FeeModelPythonWrapper
FeeModelPythonWrapper(model: Any)
Bases: FeeModel
Provides an order fee model that wraps a PyObject object that represents a model that simulates order fees
Constructor for initialising the FeeModelPythonWrapper class with wrapped PyObject object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Any
|
Represents a model that simulates order fees |
required |
get_order_fee
get_order_fee(parameters: OrderFeeParameters) -> OrderFee
Get the fee for this order
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. |