MarginCallOrdersParameters
QuantConnect.Securities.MarginCallOrdersParameters
MarginCallOrdersParameters(
position_group: IPositionGroup,
total_portfolio_value: float,
total_used_margin: float,
)
Bases: Object
Defines the parameters for DefaultMarginCallModel.generate_margin_call_orders
Initializes a new instance of the MarginCallOrdersParameters class
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
position_group
|
IPositionGroup
|
The position group |
required |
total_portfolio_value
|
float
|
The algorithm's total portfolio value |
required |
total_used_margin
|
float
|
The total used margin |
required |
total_portfolio_value
total_portfolio_value: float
Gets the algorithm's total portfolio value
total_used_margin
total_used_margin: float
Gets the total used margin