Structures
The following structures are available globally.
-
Exchange
provides exchange rates between currencies. It can also convertMonetaryAmount
values into those of differentCurrency
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 moreDeclaration
Swift
public struct Exchange : Decodable