Table of Contents

Class StockQuote

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

Represents a single stock quote, including trading symbol, registrant name, time, price, and price changes.

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

Constructors

StockQuote()

public StockQuote()

StockQuote(StockQuote)

protected StockQuote(StockQuote original)

Parameters

original StockQuote

Properties

Change

The absolute change in price since the previous quote.

public decimal Change { get; init; }

Property Value

decimal

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

PercentageChange

The percentage change in price since the previous quote.

public decimal PercentageChange { get; init; }

Property Value

decimal

Price

The quoted price of the stock.

public decimal Price { get; init; }

Property Value

decimal

RegistrantName

The registrant name associated with the stock.

public string? RegistrantName { get; init; }

Property Value

string

Time

The timestamp of the quote.

public DateTime Time { get; init; }

Property Value

DateTime

TradingSymbol

The trading symbol of the stock.

public string? TradingSymbol { get; init; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(StockQuote?)

public virtual bool Equals(StockQuote? other)

Parameters

other StockQuote

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

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

Parameters

left StockQuote
right StockQuote

Returns

bool

operator !=(StockQuote?, StockQuote?)

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

Parameters

left StockQuote
right StockQuote

Returns

bool