Table of Contents

Class ForexQuote

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

Represents real-time quote data for a forex currency pair.

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

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

Constructors

ForexQuote()

public ForexQuote()

ForexQuote(ForexQuote)

protected ForexQuote(ForexQuote original)

Parameters

original ForexQuote

Properties

Ask

Gets the ask price.

public decimal Ask { get; init; }

Property Value

decimal

Bid

Gets the bid price.

public decimal Bid { get; init; }

Property Value

decimal

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Rate

Gets the current exchange rate.

public decimal Rate { 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 forex pair.

public string? TradingSymbol { get; init; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ForexQuote?)

public virtual bool Equals(ForexQuote? other)

Parameters

other ForexQuote

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

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

Parameters

left ForexQuote
right ForexQuote

Returns

bool

operator !=(ForexQuote?, ForexQuote?)

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

Parameters

left ForexQuote
right ForexQuote

Returns

bool