Table of Contents

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

From string

ISO 4217 source currency.

To string

ISO 4217 target currency.

RateDate DateOnly

Business date asked for.

ObservationDate DateOnly

Date the source published the rate; earlier than RateDate on weekends and holidays.

Rate decimal

1 From = Rate To (full precision).

Source string

Rate source, e.g. BankOfCanada.

Properties

From

ISO 4217 source currency.

public string From { get; init; }

Property Value

string

ObservationDate

Date the source published the rate; earlier than RateDate on weekends and holidays.

public DateOnly ObservationDate { get; init; }

Property Value

DateOnly

Rate

1 From = Rate To (full precision).

public decimal Rate { get; init; }

Property Value

decimal

RateDate

Business date asked for.

public DateOnly RateDate { get; init; }

Property Value

DateOnly

Source

Rate source, e.g. BankOfCanada.

public string Source { get; init; }

Property Value

string

To

ISO 4217 target currency.

public string To { get; init; }

Property Value

string