Table of Contents

Interface IExchangeRateProvider

Namespace
Integrations.Application.Fx
Assembly
Integrations.Application.dll

Source of daily exchange rates (Bank of Canada first; others can be added to match finance's source of record).

public interface IExchangeRateProvider

Properties

Name

Stored with every rate and lock, e.g. BankOfCanada.

string Name { get; }

Property Value

string

PivotCurrency

Currency the provider quotes against (Bank of Canada: CAD).

string PivotCurrency { get; }

Property Value

string

Methods

GetDailyRatesAsync(IReadOnlyCollection<string>, DateOnly, DateOnly, CancellationToken)

Returns every published rate for the currencies between the dates (inclusive). Days without publication are absent.

Task<IReadOnlyList<PublishedRate>> GetDailyRatesAsync(IReadOnlyCollection<string> currencies, DateOnly from, DateOnly to, CancellationToken cancellationToken)

Parameters

currencies IReadOnlyCollection<string>
from DateOnly
to DateOnly
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<PublishedRate>>