Lean  $LEAN_TAG$
QuantConnect.Securities.SecurityHoldingQuantityChangedEventArgs Class Reference

Event arguments for the SecurityHolding.QuantityChanged event. The event data contains the previous quantity/price. The current quantity/price can be accessed via the SecurityEventArgs.Security property More...

Inheritance diagram for QuantConnect.Securities.SecurityHoldingQuantityChangedEventArgs:
[legend]

Public Member Functions

 SecurityHoldingQuantityChangedEventArgs (Security security, decimal previousAveragePrice, decimal previousQuantity)
 Initializes a new instance of the SecurityHoldingQuantityChangedEventArgs class More...
 

Properties

decimal PreviousQuantity [get]
 Gets the holdings quantity before this change More...
 
decimal PreviousAveragePrice [get]
 Gets the average holdings price before this change More...
 
- Properties inherited from QuantConnect.Securities.SecurityEventArgs
Security Security [get]
 Gets the security related to this event More...
 

Additional Inherited Members

- Protected Member Functions inherited from QuantConnect.Securities.SecurityEventArgs
 SecurityEventArgs (Security security)
 Initializes a new instance of the SecurityEventArgs class More...
 

Detailed Description

Event arguments for the SecurityHolding.QuantityChanged event. The event data contains the previous quantity/price. The current quantity/price can be accessed via the SecurityEventArgs.Security property

Definition at line 23 of file SecurityHoldingQuantityChangedEventArgs.cs.

Constructor & Destructor Documentation

◆ SecurityHoldingQuantityChangedEventArgs()

QuantConnect.Securities.SecurityHoldingQuantityChangedEventArgs.SecurityHoldingQuantityChangedEventArgs ( Security  security,
decimal  previousAveragePrice,
decimal  previousQuantity 
)

Initializes a new instance of the SecurityHoldingQuantityChangedEventArgs class

Parameters
securityThe security
previousAveragePriceThe security's previous average holdings price
previousQuantityThe security's previous holdings quantity

Definition at line 41 of file SecurityHoldingQuantityChangedEventArgs.cs.

Property Documentation

◆ PreviousQuantity

decimal QuantConnect.Securities.SecurityHoldingQuantityChangedEventArgs.PreviousQuantity
get

Gets the holdings quantity before this change

Definition at line 28 of file SecurityHoldingQuantityChangedEventArgs.cs.

◆ PreviousAveragePrice

decimal QuantConnect.Securities.SecurityHoldingQuantityChangedEventArgs.PreviousAveragePrice
get

Gets the average holdings price before this change

Definition at line 33 of file SecurityHoldingQuantityChangedEventArgs.cs.


The documentation for this class was generated from the following file: