Class ExchangeRateDto
- Namespace
- Integrations.Contracts.Fx
- Assembly
- Integrations.Contracts.dll
Rate for a pair on a business date. 1 From = Rate To.
public sealed record ExchangeRateDto : IEquatable<ExchangeRateDto>
- Inheritance
-
ExchangeRateDto
- Implements
- Inherited Members
Constructors
ExchangeRateDto(string, string, DateOnly, DateOnly, decimal, string)
Rate for a pair on a business date. 1 From = Rate To.
public ExchangeRateDto(string From, string To, DateOnly RateDate, DateOnly ObservationDate, decimal Rate, string Source)
Parameters
FromstringISO 4217 source currency.
TostringISO 4217 target currency.
RateDateDateOnlyBusiness date asked for.
ObservationDateDateOnlyDate the source published the rate; earlier than
RateDateon weekends and holidays.Ratedecimal1
From=RateTo(full precision).SourcestringRate source, e.g.
BankOfCanada.
Properties
From
ISO 4217 source currency.
public string From { get; init; }
Property Value
ObservationDate
Date the source published the rate; earlier than RateDate on weekends and holidays.
public DateOnly ObservationDate { get; init; }
Property Value
Rate
1 From = Rate To (full precision).
public decimal Rate { get; init; }
Property Value
RateDate
Business date asked for.
public DateOnly RateDate { get; init; }
Property Value
Source
Rate source, e.g. BankOfCanada.
public string Source { get; init; }
Property Value
To
ISO 4217 target currency.
public string To { get; init; }