Class IndexConstituent
- Namespace
- Tudormobile.FinancialData.Entities
- Assembly
- Tudormobile.FinancialData.dll
Represents a constituent of a market index, including its symbol, name, sector, and industry.
See: https://financialdata.net/documentation#index_constituents
public record IndexConstituent : IEquatable<IndexConstituent>
- Inheritance
-
IndexConstituent
- Implements
- Inherited Members
Constructors
IndexConstituent()
public IndexConstituent()
IndexConstituent(IndexConstituent)
protected IndexConstituent(IndexConstituent original)
Parameters
originalIndexConstituent
Properties
ConstituentName
Gets the name of the constituent security.
public string? ConstituentName { get; init; }
Property Value
ConstituentSymbol
Gets the symbol of the constituent security.
public string? ConstituentSymbol { get; init; }
Property Value
DateAdded
Gets the date the constituent was added to the index.
public DateOnly? DateAdded { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IndexName
Gets the name of the market index.
public string? IndexName { get; init; }
Property Value
Industry
Gets the industry of the constituent security.
public string? Industry { get; init; }
Property Value
Sector
Gets the sector of the constituent security.
public string? Sector { get; init; }
Property Value
TradingSymbol
Gets the trading symbol of the market index.
public string? TradingSymbol { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(IndexConstituent?)
public virtual bool Equals(IndexConstituent? other)
Parameters
otherIndexConstituent
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(IndexConstituent?, IndexConstituent?)
public static bool operator ==(IndexConstituent? left, IndexConstituent? right)
Parameters
leftIndexConstituentrightIndexConstituent
Returns
operator !=(IndexConstituent?, IndexConstituent?)
public static bool operator !=(IndexConstituent? left, IndexConstituent? right)
Parameters
leftIndexConstituentrightIndexConstituent