Table of Contents

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

original CryptoQuote

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

MarketCap

Gets the market capitalization.

public decimal MarketCap { get; init; }

Property Value

decimal

PercentChange

Gets the 24-hour price change percentage.

public decimal PercentChange { get; init; }

Property Value

decimal

Price

Gets the current price.

public decimal Price { get; init; }

Property Value

decimal

Time

Gets the timestamp of the quote (UTC).

public DateTime Time { get; init; }

Property Value

DateTime

TradingSymbol

Gets the trading symbol of the cryptocurrency.

public string? TradingSymbol { get; init; }

Property Value

string

Volume

Gets the 24-hour trading volume.

public decimal Volume { get; init; }

Property Value

decimal

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(CryptoQuote?)

public virtual bool Equals(CryptoQuote? other)

Parameters

other CryptoQuote

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

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

Parameters

left CryptoQuote
right CryptoQuote

Returns

bool

operator !=(CryptoQuote?, CryptoQuote?)

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

Parameters

left CryptoQuote
right CryptoQuote

Returns

bool