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
originalIndexQuote
Properties
Change
Gets the price change.
public decimal Change { 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
PercentageChange
Gets the percentage change in price.
public decimal PercentageChange { get; init; }
Property Value
Price
Gets the current price of the index.
public decimal Price { get; init; }
Property Value
Time
Gets the time of the quote.
public DateTime? Time { 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(IndexQuote?)
public virtual bool Equals(IndexQuote? other)
Parameters
otherIndexQuote
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 ==(IndexQuote?, IndexQuote?)
public static bool operator ==(IndexQuote? left, IndexQuote? right)
Parameters
leftIndexQuoterightIndexQuote
Returns
operator !=(IndexQuote?, IndexQuote?)
public static bool operator !=(IndexQuote? left, IndexQuote? right)
Parameters
leftIndexQuoterightIndexQuote