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

SecurityType Type => Symbol.SecurityType
 Type of the security.
 

Properties

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

Detailed Description

Singular holding of assets from backend live nodes:

Definition at line 64 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 116 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 139 of file Global.cs.

◆ ToString()

override string QuantConnect.Holding.ToString ( )

Writes out the properties of this instance to string

Definition at line 158 of file Global.cs.

Here is the call graph for this function:

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