Skip to content

HistoricalRateProvider

type HistoricalRateProvider = (from, to, isoDate, signal) => Promise<number>;

Defined in: packages/engine/src/uom/HistoricalCurrency.ts:52

Resolve one historical exchange rate: the value of 1 unit of from in to on isoDate (YYYY-MM-DD). Supplied by the host, backed by whichever provider and key THEY have. Receives an AbortSignal that fires on caller cancellation or the fetch timeout, pass it to fetch().

ParameterType
fromstring
tostring
isoDatestring
signalAbortSignal

Promise<number>