CurrencyConvert

CurrencyConvert[quantity,target]

attempts to convert the specified currency quantity to the specified target currency.

CurrencyConvert[quantity,target,date]

converts to the target currency for the historical date specification.

Details

  • The target can be a canonical unit or a Quantity expression.
  • When target is a Quantity, the resulting output will have the same unit as target.
  • An internet connection is required for conversion between currency units.
  • CurrencyConvert uses exchange rate information provided by FinancialData for conversion between currency units.
  • CurrencyConvert uses InflationAdjust for historical currency conversions involving DatedUnit.
  • When no exchange rate information is available, a String representing the exchange ratio is returned instead.
  • Date specifications may include a DateObject, DateList, DateString or AbsoluteTime specification.
  • The date specification may also be a range of {start,end} or All, where results are a TimeSeries object.

Examples

open all close all

Basic Examples  (2)

Convert from US dollars to euros:

In[1]:=
Click for copyable input
Out[1]=

DatedUnit can be used to specify currency values at a specific point in time:

In[2]:=
Click for copyable input
Out[2]=

The third argument may be used to do conversions for a specific historical date:

In[1]:=
Click for copyable input
Out[1]=

A range of dates may also be provided:

In[2]:=
Click for copyable input
Out[2]=

A date specification of All will return all available historical currency conversion data:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

Scope  (1)

Possible Issues  (3)

Introduced in 2014
(10.0)
|
Updated in 2019
(12.0)