Table of Contents

Class ExchangeRateObservation

Namespace
Integrations.Domain.Fx
Assembly
Integrations.Domain.dll

One published daily rate from a source, stored exactly as published and never overwritten. Sources publish against a pivot currency (Bank of Canada: every currency vs CAD); cross rates are derived.

public sealed class ExchangeRateObservation
Inheritance
ExchangeRateObservation
Inherited Members

Properties

Currency

Currency being priced (e.g. USD).

public string Currency { get; init; }

Property Value

string

Date

Business date the rate was published for.

public DateOnly Date { get; init; }

Property Value

DateOnly

Id

Observation id.

public Guid Id { get; init; }

Property Value

Guid

PivotCurrency

Pivot currency the rate is quoted in (e.g. CAD). 1 Currency = Rate PivotCurrency.

public string PivotCurrency { get; init; }

Property Value

string

Rate

Published rate, stored exactly as published.

public decimal Rate { get; init; }

Property Value

decimal

RetrievedAt

When this service fetched it.

public DateTimeOffset RetrievedAt { get; init; }

Property Value

DateTimeOffset

Source

Provider name, e.g. BankOfCanada.

public string Source { get; init; }

Property Value

string