Table of Contents

Class CryptoPrice

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

Represents daily historical price data for a cryptocurrency.

See: https://financialdata.net/documentation#crypto_prices

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

Constructors

CryptoPrice()

public CryptoPrice()

CryptoPrice(CryptoPrice)

protected CryptoPrice(CryptoPrice original)

Parameters

original CryptoPrice

Properties

Close

Gets the closing price.

public decimal Close { get; init; }

Property Value

decimal

Date

Gets the date of the price record.

public DateOnly Date { get; init; }

Property Value

DateOnly

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

High

Gets the highest price.

public decimal High { get; init; }

Property Value

decimal

Low

Gets the lowest price.

public decimal Low { get; init; }

Property Value

decimal

MarketCap

Gets the market capitalization.

public decimal MarketCap { get; init; }

Property Value

decimal

Open

Gets the opening price.

public decimal Open { get; init; }

Property Value

decimal

TradingSymbol

Gets the trading symbol of the cryptocurrency.

public string? TradingSymbol { get; init; }

Property Value

string

Volume

Gets the 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(CryptoPrice?)

public virtual bool Equals(CryptoPrice? other)

Parameters

other CryptoPrice

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

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

Parameters

left CryptoPrice
right CryptoPrice

Returns

bool

operator !=(CryptoPrice?, CryptoPrice?)

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

Parameters

left CryptoPrice
right CryptoPrice

Returns

bool