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
originalStockQuote
Properties
Change
The absolute change in price since the previous quote.
public decimal Change { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
PercentageChange
The percentage change in price since the previous quote.
public decimal PercentageChange { get; init; }
Property Value
Price
The quoted price of the stock.
public decimal Price { get; init; }
Property Value
RegistrantName
The registrant name associated with the stock.
public string? RegistrantName { get; init; }
Property Value
Time
The timestamp of the quote.
public DateTime Time { get; init; }
Property Value
TradingSymbol
The trading symbol of the stock.
public string? TradingSymbol { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(StockQuote?)
public virtual bool Equals(StockQuote? other)
Parameters
otherStockQuote
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 ==(StockQuote?, StockQuote?)
public static bool operator ==(StockQuote? left, StockQuote? right)
Parameters
leftStockQuoterightStockQuote
Returns
operator !=(StockQuote?, StockQuote?)
public static bool operator !=(StockQuote? left, StockQuote? right)
Parameters
leftStockQuoterightStockQuote