Table of Contents

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

original IndexConstituent

Properties

ConstituentName

Gets the name of the constituent security.

public string? ConstituentName { get; init; }

Property Value

string

ConstituentSymbol

Gets the symbol of the constituent security.

public string? ConstituentSymbol { get; init; }

Property Value

string

DateAdded

Gets the date the constituent was added to the index.

public DateOnly? DateAdded { get; init; }

Property Value

DateOnly?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

IndexName

Gets the name of the market index.

public string? IndexName { get; init; }

Property Value

string

Industry

Gets the industry of the constituent security.

public string? Industry { get; init; }

Property Value

string

Sector

Gets the sector of the constituent security.

public string? Sector { get; init; }

Property Value

string

TradingSymbol

Gets the trading symbol of the market index.

public string? TradingSymbol { get; init; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(IndexConstituent?)

public virtual bool Equals(IndexConstituent? other)

Parameters

other IndexConstituent

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(IndexConstituent?, IndexConstituent?)

public static bool operator ==(IndexConstituent? left, IndexConstituent? right)

Parameters

left IndexConstituent
right IndexConstituent

Returns

bool

operator !=(IndexConstituent?, IndexConstituent?)

public static bool operator !=(IndexConstituent? left, IndexConstituent? right)

Parameters

left IndexConstituent
right IndexConstituent

Returns

bool