Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

PrimeRatesOptions

Defined in: packages/engine/src/uom/CurrencyExchange.ts:31

Options for CurrencyExchangeService.primeRates: where the rates came from, so a conversion that uses them can say so.

optional provider?: string;

Defined in: packages/engine/src/uom/CurrencyExchange.ts:33

The provider’s name, recorded on every conversion that uses this table. Defaults to PRIMED_RATES_PROVIDER.


optional publishedAt?: number;

Defined in: packages/engine/src/uom/CurrencyExchange.ts:39

When the host’s rates were published, in epoch milliseconds. Recorded as the source’s fetchedAt. Defaults to the moment of priming. It does not move the freshness window, which always runs from the moment of priming.