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
originalForexPrice
Properties
Close
Gets the closing rate.
public decimal Close { get; init; }
Property Value
Date
Gets the date of the price record.
public DateOnly Date { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
High
Gets the highest rate.
public decimal High { get; init; }
Property Value
Low
Gets the lowest rate.
public decimal Low { get; init; }
Property Value
Open
Gets the opening rate.
public decimal Open { get; init; }
Property Value
TradingSymbol
Gets the trading symbol of the forex pair.
public string? TradingSymbol { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ForexPrice?)
public virtual bool Equals(ForexPrice? other)
Parameters
otherForexPrice
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 ==(ForexPrice?, ForexPrice?)
public static bool operator ==(ForexPrice? left, ForexPrice? right)
Parameters
leftForexPricerightForexPrice
Returns
operator !=(ForexPrice?, ForexPrice?)
public static bool operator !=(ForexPrice? left, ForexPrice? right)
Parameters
leftForexPricerightForexPrice