Lean  $LEAN_TAG$
QuantConnect.Holding Class Reference

Singular holding of assets from backend live nodes: More...

Public Member Functions

 Holding ()
 Create a new default holding:
 
 Holding (Security security)
 Create a simple JSON holdings from a Security holding class. More...
 
Holding Clone ()
 Clones this instance More...
 
override string ToString ()
 Writes out the properties of this instance to string More...
 

Public Attributes

Symbol Symbol = Symbol.Empty
 Symbol of the Holding:
 
SecurityType Type => Symbol.SecurityType
 Type of the security.
 
string CurrencySymbol
 The currency symbol of the holding, such as $.
 
decimal AveragePrice
 Average Price of our Holding in the currency the symbol is traded in.
 
decimal Quantity
 Quantity of Symbol We Hold.
 
decimal MarketPrice
 Current Market Price of the Asset in the currency the symbol is traded in.
 
decimal? ConversionRate
 Current market conversion rate into the account currency.
 
decimal MarketValue
 Current market value of the holding.
 
decimal UnrealizedPnL
 Current unrealized P/L of the holding.
 
decimal UnrealizedPnLPercent
 Current unrealized P/L % of the holding.
 

Detailed Description

Singular holding of assets from backend live nodes:

Definition at line 65 of file Global.cs.

Constructor & Destructor Documentation

◆ Holding()

QuantConnect.Holding.Holding ( Security  security)

Create a simple JSON holdings from a Security holding class.

Parameters
securityThe security instance

Definition at line 115 of file Global.cs.

Here is the call graph for this function:

Member Function Documentation

◆ Clone()

Holding QuantConnect.Holding.Clone ( )

Clones this instance

Returns
A new Holding object with the same values as this one

Definition at line 138 of file Global.cs.

◆ ToString()

override string QuantConnect.Holding.ToString ( )

Writes out the properties of this instance to string

Definition at line 157 of file Global.cs.


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