Class CryptoQuote
- Namespace
- Tudormobile.FinancialData.Entities
- Assembly
- Tudormobile.FinancialData.dll
Represents real-time quote data for a cryptocurrency including price, volume, and market cap.
See: https://financialdata.net/documentation#crypto_quotes
public record CryptoQuote : IEquatable<CryptoQuote>
- Inheritance
-
CryptoQuote
- Implements
- Inherited Members
Constructors
CryptoQuote()
public CryptoQuote()
CryptoQuote(CryptoQuote)
protected CryptoQuote(CryptoQuote original)
Parameters
originalCryptoQuote
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
MarketCap
Gets the market capitalization.
public decimal MarketCap { get; init; }
Property Value
PercentChange
Gets the 24-hour price change percentage.
public decimal PercentChange { get; init; }
Property Value
Price
Gets the current price.
public decimal Price { get; init; }
Property Value
Time
Gets the timestamp of the quote (UTC).
public DateTime Time { get; init; }
Property Value
TradingSymbol
Gets the trading symbol of the cryptocurrency.
public string? TradingSymbol { get; init; }
Property Value
Volume
Gets the 24-hour trading volume.
public decimal Volume { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(CryptoQuote?)
public virtual bool Equals(CryptoQuote? other)
Parameters
otherCryptoQuote
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 ==(CryptoQuote?, CryptoQuote?)
public static bool operator ==(CryptoQuote? left, CryptoQuote? right)
Parameters
leftCryptoQuoterightCryptoQuote
Returns
operator !=(CryptoQuote?, CryptoQuote?)
public static bool operator !=(CryptoQuote? left, CryptoQuote? right)
Parameters
leftCryptoQuoterightCryptoQuote