Lean  $LEAN_TAG$
QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet Class Reference

The total of financial instruments that are bought and held principally for the purpose of selling them in the near term (thus held for only a short period of time) or for debt and equity securities formerly categorized as available-for-sale or held-to-maturity which the company held as of the date it opted to account for such securities at fair value. More...

Inheritance diagram for QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet:
[legend]

Public Member Functions

override IReadOnlyDictionary< string, double > GetPeriodValues ()
 Gets a dictionary of period names and values for the field More...
 
override double GetPeriodValue (string period)
 Gets the value of the field for the requested period More...
 
 TradingSecuritiesBalanceSheet ()
 Creates a new empty instance More...
 
 TradingSecuritiesBalanceSheet (ITimeProvider timeProvider, SecurityIdentifier securityIdentifier)
 Creates a new instance for the given time and security More...
 
- Public Member Functions inherited from QuantConnect.Data.Fundamental.MultiPeriodField< T >
virtual bool HasPeriodValue (string period)
 Returns true if the field contains a value for the requested period More...
 
IEnumerable< string > GetPeriodNames ()
 Gets the list of available period names for the field More...
 
bool HasValues ()
 Returns true if the field has at least one value for one period More...
 
override string ToString ()
 Returns a string that represents the current object. More...
 

Public Attributes

double ThreeMonths => FundamentalService.Get<double>(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_ThreeMonths)
 Gets/sets the ThreeMonths period value for the field More...
 
double SixMonths => FundamentalService.Get<double>(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_SixMonths)
 Gets/sets the SixMonths period value for the field More...
 
double TwelveMonths => FundamentalService.Get<double>(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_TwelveMonths)
 Gets/sets the TwelveMonths period value for the field More...
 
override bool HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get<double>(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_TwelveMonths))
 Returns true if the field contains a value for the default period More...
 
- Public Attributes inherited from QuantConnect.Data.Fundamental.MultiPeriodField< T >
virtual T Value => GetPeriodValues().Select(x => x.Value).DefaultIfEmpty(NoValue).FirstOrDefault()
 Returns the default value for the field More...
 

Protected Attributes

override string DefaultPeriod => "TwelveMonths"
 The default period More...
 

Properties

override double Value [get]
 Returns the default value for the field More...
 
- Properties inherited from QuantConnect.Data.Fundamental.MultiPeriodField< T >
static T NoValue = BaseFundamentalDataProvider.GetDefault<T>() [get]
 No Value More...
 
ITimeProvider TimeProvider [get]
 The time provider instance to use More...
 
abstract string DefaultPeriod [get]
 The default period More...
 
SecurityIdentifier SecurityIdentifier [get, set]
 The target security identifier More...
 
abstract bool HasValue [get]
 Returns true if the field contains a value for the default period More...
 

Additional Inherited Members

- Static Public Member Functions inherited from QuantConnect.Data.Fundamental.MultiPeriodField< T >
static implicit operator T (MultiPeriodField< T > instance)
 Returns the default value for the field More...
 
static implicit operator decimal (MultiPeriodField instance)
 Returns the default value for the field More...
 
- Protected Member Functions inherited from QuantConnect.Data.Fundamental.MultiPeriodField< T >
 MultiPeriodField ()
 Creates an empty instance More...
 
 MultiPeriodField (ITimeProvider timeProvider, SecurityIdentifier securityIdentifier)
 Creates a new instance More...
 
string ConvertPeriod (string period)
 Returns a string that represents the current object. More...
 
 MultiPeriodField ()
 Creates an empty instance More...
 
 MultiPeriodField (ITimeProvider timeProvider, SecurityIdentifier securityIdentifier)
 Creates a new instance More...
 

Detailed Description

The total of financial instruments that are bought and held principally for the purpose of selling them in the near term (thus held for only a short period of time) or for debt and equity securities formerly categorized as available-for-sale or held-to-maturity which the company held as of the date it opted to account for such securities at fair value.

Definition at line 29 of file TradingSecuritiesBalanceSheet.cs.

Constructor & Destructor Documentation

◆ TradingSecuritiesBalanceSheet() [1/2]

QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.TradingSecuritiesBalanceSheet ( )

Creates a new empty instance

Definition at line 102 of file TradingSecuritiesBalanceSheet.cs.

◆ TradingSecuritiesBalanceSheet() [2/2]

QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.TradingSecuritiesBalanceSheet ( ITimeProvider  timeProvider,
SecurityIdentifier  securityIdentifier 
)

Creates a new instance for the given time and security

Definition at line 109 of file TradingSecuritiesBalanceSheet.cs.

Member Function Documentation

◆ GetPeriodValues()

override IReadOnlyDictionary<string, double> QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.GetPeriodValues ( )
virtual

Gets a dictionary of period names and values for the field

Returns
The dictionary of period names and values

Implements QuantConnect.Data.Fundamental.MultiPeriodField< T >.

Definition at line 79 of file TradingSecuritiesBalanceSheet.cs.

Here is the call graph for this function:

◆ GetPeriodValue()

override double QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.GetPeriodValue ( string  period)
virtual

Gets the value of the field for the requested period

Parameters
periodThe requested period
Returns
The value for the period

Implements QuantConnect.Data.Fundamental.MultiPeriodField< T >.

Member Data Documentation

◆ DefaultPeriod

override string QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.DefaultPeriod => "TwelveMonths"
protected

The default period

Definition at line 34 of file TradingSecuritiesBalanceSheet.cs.

◆ ThreeMonths

double QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.ThreeMonths => FundamentalService.Get<double>(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_ThreeMonths)

Gets/sets the ThreeMonths period value for the field

Definition at line 40 of file TradingSecuritiesBalanceSheet.cs.

◆ SixMonths

double QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.SixMonths => FundamentalService.Get<double>(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_SixMonths)

Gets/sets the SixMonths period value for the field

Definition at line 46 of file TradingSecuritiesBalanceSheet.cs.

◆ TwelveMonths

double QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.TwelveMonths => FundamentalService.Get<double>(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_TwelveMonths)

Gets/sets the TwelveMonths period value for the field

Definition at line 52 of file TradingSecuritiesBalanceSheet.cs.

◆ HasValue

override bool QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.HasValue => !BaseFundamentalDataProvider.IsNone(typeof(double), FundamentalService.Get<double>(TimeProvider.GetUtcNow(), SecurityIdentifier, FundamentalProperty.FinancialStatements_BalanceSheet_TradingSecurities_TwelveMonths))

Returns true if the field contains a value for the default period

Definition at line 57 of file TradingSecuritiesBalanceSheet.cs.

Property Documentation

◆ Value

override double QuantConnect.Data.Fundamental.TradingSecuritiesBalanceSheet.Value
get

Returns the default value for the field

Definition at line 63 of file TradingSecuritiesBalanceSheet.cs.


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