Table of Contents

Class IndexQuote

Namespace
Tudormobile.FinancialData.Entities
Assembly
Tudormobile.FinancialData.dll

Represents a real-time or recent quote for a market index, including price, change, and percentage change.

See: https://financialdata.net/documentation#index_quotes

public record IndexQuote : IEquatable<IndexQuote>
Inheritance
IndexQuote
Implements
Inherited Members

Constructors

IndexQuote()

public IndexQuote()

IndexQuote(IndexQuote)

protected IndexQuote(IndexQuote original)

Parameters

original IndexQuote

Properties

Change

Gets the price change.

public decimal Change { get; init; }

Property Value

decimal

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

PercentageChange

Gets the percentage change in price.

public decimal PercentageChange { get; init; }

Property Value

decimal

Price

Gets the current price of the index.

public decimal Price { get; init; }

Property Value

decimal

Time

Gets the time of the quote.

public DateTime? Time { get; init; }

Property Value

DateTime?

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(IndexQuote?)

public virtual bool Equals(IndexQuote? other)

Parameters

other IndexQuote

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 ==(IndexQuote?, IndexQuote?)

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

Parameters

left IndexQuote
right IndexQuote

Returns

bool

operator !=(IndexQuote?, IndexQuote?)

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

Parameters

left IndexQuote
right IndexQuote

Returns

bool