Table of Contents

Class ForexPrice

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

Represents daily historical price data for a forex currency pair.

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

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

Constructors

ForexPrice()

public ForexPrice()

ForexPrice(ForexPrice)

protected ForexPrice(ForexPrice original)

Parameters

original ForexPrice

Properties

Close

Gets the closing rate.

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 rate.

public decimal High { get; init; }

Property Value

decimal

Low

Gets the lowest rate.

public decimal Low { get; init; }

Property Value

decimal

Open

Gets the opening rate.

public decimal Open { get; init; }

Property Value

decimal

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(ForexPrice?)

public virtual bool Equals(ForexPrice? other)

Parameters

other ForexPrice

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

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

Parameters

left ForexPrice
right ForexPrice

Returns

bool

operator !=(ForexPrice?, ForexPrice?)

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

Parameters

left ForexPrice
right ForexPrice

Returns

bool