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
originalForexQuote
Properties
Ask
Gets the ask price.
public decimal Ask { get; init; }
Property Value
Bid
Gets the bid price.
public decimal Bid { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Rate
Gets the current exchange rate.
public decimal Rate { get; init; }
Property Value
Time
Gets the timestamp of the quote (UTC).
public DateTime Time { 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(ForexQuote?)
public virtual bool Equals(ForexQuote? other)
Parameters
otherForexQuote
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 ==(ForexQuote?, ForexQuote?)
public static bool operator ==(ForexQuote? left, ForexQuote? right)
Parameters
leftForexQuoterightForexQuote
Returns
operator !=(ForexQuote?, ForexQuote?)
public static bool operator !=(ForexQuote? left, ForexQuote? right)
Parameters
leftForexQuoterightForexQuote