Structures

The following structures are available globally.

  • Exchange provides exchange rates between currencies. It can also convert MonetaryAmount values into those of different Currency values.

    Cross-rates

    If converting between two currencies which neither are the base currency, but each have a rate against the base currency, then a cross-rate will be produced.

    For example, if the base currency is EUR but a rate for GBP to USD is requested, a cross-rate will be used. i.e. GBP to EUR to USD.

    See the Collins Dictionary definition of Cross-Rate for more information.

    See more

    Declaration

    Swift

    public struct Exchange : Decodable