*! version 1.0.0 20February 2012

help for erate

Title

erate -- Module to import up-to-date exchange rates between any currency pairs

Syntax

erate basecurrency targetcurrency, [options]

Options
quantity(#) Gives the quantity of base currency for the exchange rate calculation. If quantity is not specified, this is assumed to be 1.

vars Store returned exchange rates as new variables.

Description

erate is a module which allows exchange rate conversion between any two currency pairs. erate consults google's currency conversion tool
and gives up-to-date rates. Exchange rates are automatically saved as an rlist, and can be consulted by displaying r(basecurrency) and
r(targetcurrency). Alternatively the user can store results as variables by specifying the vars option. By default these are stored as _rateAAA where AAA will be replace
with the currency's isocode.

For details of the conversion tool consulted, see the online disclaimer.

Further Details

The following currencies are available for conversion.

Isocode Currency

AED	United Arab Emirates Dirham
ANG	Netherlands Antilles Guilder
ARS	Argentina Peso
AUD	Australia Dollar
BGN	Bulgaria Lev
BHD	Bahrain Dinar
BND	Brunei Darussalam Dollar
BOB	Bolivia Boliviano
BRL	Brazil Real
BWP	Botswana Pula
CAD	Canada Dollar
CHF	Switzerland Franc
CLP	Chile Peso
CNY	China Yuan Renminbi
COP	Colombia Peso
CRC	Costa Rica Colon
CZK	Czech Republic Koruna
DKK	Denmark Krone
DOP	Dominican Republic Peso
DZD	Algeria Dinar
EGP	Egypt Pound
EUR	Euro Member Countries
FJD	Fiji Dollar
GBP	United Kingdom Pound
HKD	Hong Kong Dollar
HNL	Honduras Lempira
HRK	Croatia Kuna
HUF	Hungary Forint
IDR	Indonesia Rupiah
ILS	Israel Shekel
INR	India Rupee
JMD	Jamaica Dollar
JOD	Jordan Dinar
JPY	Japan Yen
KES	Kenya Shilling
KRW	Korea (South) Won
KWD	Kuwait Dinar
KYD	Cayman Islands Dollar
KZT	Kazakhstan Tenge
LBP	Lebanon Pound
LKR	Sri Lanka Rupee
LTL	Lithuania Litas
LVL	Latvia Lat
MAD	Morocco Dirham
MDL	Moldova Leu
MKD	Macedonia Denar
MUR	Mauritius Rupee
MXN	Mexico Peso
MYR	Malaysia Ringgit
NAD	Namibia Dollar
NGN	Nigeria Naira
NIO	Nicaragua Cordoba
NOK	Norway Krone
NPR	Nepal Rupee
NZD	New Zealand Dollar
OMR	Oman Rial
PEN	Peru Nuevo Sol
PGK	Papua New Guinea Kina
PHP	Philippines Peso
PKR	Pakistan Rupee
PLN	Poland Zloty
PYG	Paraguay Guarani
QAR	Qatar Riyal
RON	Romania New Leu
RSD	Serbia Dinar
RUB	Russia Ruble
SAR	Saudi Arabia Riyal
SCR	Seychelles Rupee
SEK	Sweden Krona
SGD	Singapore Dollar
SLL	Sierra Leone Leone
SVC	El Salvador Colon
THB	Thailand Baht
TND	Tunisia Dinar
TRY	Turkey Lira
TTD	Trinidad and Tobago Dollar
TWD	Taiwan New Dollar
TZS	Tanzania Shilling
UAH	Ukraine Hryvna
UGX	Uganda Shilling
USD	United States Dollar
UYU	Uruguay Peso
UZS	Uzbekistan Som
VEF	Venezuela Bolivar
VND	Viet Nam Dong
YER	Yemen Rial
ZAR	South Africa Rand

Examples

Convert 1 United States Dollar into Mexican Pesos

. erate USD MXN

Convert 1000 Australian Dollars into Chilean Pesos and store output as variables

. erate AUD CLP, q(1250.50) vars

. sum _rateAUD _rateCLP

Also see

If installed: usd.

Authors

Damian C. Clarke, The University of Oxford. damian.clarke@economics.ox.ac.uk

Pavel Luengas Sierra, The University of Oxford. pavel.luengas-sierra@economics.ox.ac.uk