SecurityHoldingQuantityChangedEventArgs
QuantConnect.Securities.SecurityHoldingQuantityChangedEventArgs
SecurityHoldingQuantityChangedEventArgs(
security: Security,
previous_average_price: float,
previous_quantity: float,
)
Bases: SecurityEventArgs
Event arguments for the SecurityHolding.quantity_changed event. The event data contains the previous quantity/price. The current quantity/price can be accessed via the securityEventArgs.security property
Initializes a new instance of the SecurityHoldingQuantityChangedEventArgs class
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
security
|
Security
|
The security |
required |
previous_average_price
|
float
|
The security's previous average holdings price |
required |
previous_quantity
|
float
|
The security's previous holdings quantity |
required |
previous_quantity
previous_quantity: float
Gets the holdings quantity before this change
previous_average_price
previous_average_price: float
Gets the average holdings price before this change