Table of Contents

IPairRateSource<TSeries> Interface

Definition

Namespace
Bodu.Financial.ExchangeRates
Assembly
Bodu.Financial.ExchangeRates.dll
Package
Bodu.Financial.ExchangeRates 1.0.0
Source
IPairRateSource{T}.cs

Fetches and parses the dated observations for a single currency pair and date range. This is the per-source seam between a PairWebRateProvider<TSeries> and the network: a concrete implementation builds the feed-specific request, issues it, and parses the response into a PairRateData<TSeries>, while tests substitute a fixture-backed implementation.

public interface IPairRateSource<TSeries>

Type Parameters

TSeries

The source-specific series-metadata type carried on the result.

Extension Methods

Methods

GetPairAsync(CurrencyPairRequest, CancellationToken)

Fetches and parses the observations for the supplied request.

ValueTask<PairRateData<TSeries>> GetPairAsync(CurrencyPairRequest request, CancellationToken cancellationToken = default)

Parameters

request CurrencyPairRequest

The request describing the pair and inclusive date range to fetch.

cancellationToken CancellationToken

A token to observe while awaiting the fetch.

Returns

ValueTask<PairRateData<TSeries>>

A task that yields the parsed, range-restricted observations and series metadata.

Applies to

ProductVersions
.NET8, 10