The currency object
The currency
object contains information about an individual currency, like the ISO code and symbol. The currency
object is returned by the following objects:
The currency
object has the following attributes:
currency.name
Anchor link to section titled "currency.name"Returns the name of the currency (for example United States dollars
or Euro
).
currency.iso_code
Anchor link to section titled "currency.iso_code"Returns the ISO code of the currency (for example USD
or EUR
).
currency.symbol
Anchor link to section titled "currency.symbol"Returns the currency's symbol (for example, $
or €
).
You can use the following snippet to display information about a currency.