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().
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
from | string |
to | string |
isoDate | string |
signal | AbortSignal |
Returns
Section titled “Returns”Promise<number>