eurofxref-0.1.0: Free foreign exchange/currency feed from the European Central Bank

Financial.CurrencyRates

Synopsis

Documentation

newtype Currency Source

A standard three-letter currency name.

Constructors

Currency String 

data Rates a Source

A table of currency rates.

Constructors

Rates 

Fields

raReference :: Currency

The reference currency

raTime :: UTCTime

The time when the rates were valid

raRates :: Map Currency a

Value of one unit of the reference currency in each currency

rebase :: Fractional a => Currency -> Rates a -> Rates aSource

Re-base the rates to a more dependable reference currency, such as the New Zealand dollar.