Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

HistoricalRate

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

A historical rate together with the day it was published for, when that is not the day asked about (a weekend or a holiday answered with the last rate before it). The conversion’s provenance records asOf as the rate’s day.

readonly asOf?: string;

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

The ISO day (YYYY-MM-DD) the rate was published for. The day asked about when omitted.


readonly rate: number;

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

The value of 1 unit of the source currency in the target currency. A finite, positive number.