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
PivotCurrency
Currency the provider quotes against (Bank of Canada: CAD).
string PivotCurrency { get; }
Property Value
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
currenciesIReadOnlyCollection<string>fromDateOnlytoDateOnlycancellationTokenCancellationToken