GetExchangeData
Posted: Tue Feb 08, 2011 5:22 pm
This thread is about the GetExchangeData add-in that provides an easy way to download historical exchange rate data into EViews.
Even though the top 21 currencies are currently avaiable, you can add a new currency by editing the program.
In particular, when you open the program GetExchangeData.prg, you will see the following two lines:
Now suppose that you want to download the exchange rate between the US Dollars and the Argentine Peso.
By filling the last element of %currency_list and %currency_code with "Argentine Peso" and "ARS", respectively, you can download the series of interest.
*Note that "Argentine Peso" and "ARS" should be in the same order as each other.
[Change log]
Even though the top 21 currencies are currently avaiable, you can add a new currency by editing the program.
In particular, when you open the program GetExchangeData.prg, you will see the following two lines:
Code: Select all
%currency_list = """US Dollar"" ""Euro"" ""Australian Dollar"" ""Brazilian Real"" ""British Pound"" ""Canadian Dollar"" ""Chinese Yuan"" ""Danish Krone"" ""Hong Kong Dollar"" ""Indian Rupee"" ""Japanese Yen"" ""Korean Won"" ""Malaysian Ringgit"" ""Mexican Peso"" ""New Zealand Dollar"" ""Norwegian Krone"" ""Singapore Dollar"" ""South African Rand"" ""Sri Lanka Rupee"" ""Swedish Krona"" ""Swiss Franc"""
%currency_code = "USD EUR AUD BRL GBP CAD CNY DKK HKD INR JPY KRW MYR MXN NZD NOK SGD ZAR LKR SEK CHF"
By filling the last element of %currency_list and %currency_code with "Argentine Peso" and "ARS", respectively, you can download the series of interest.
Code: Select all
%currency_list = """US Dollar"" ""Euro"" ""Australian Dollar"" ""Brazilian Real"" ""British Pound"" ""Canadian Dollar"" ""Chinese Yuan"" ""Danish Krone"" ""Hong Kong Dollar"" ""Indian Rupee"" ""Japanese Yen"" ""Korean Won"" ""Malaysian Ringgit"" ""Mexican Peso"" ""New Zealand Dollar"" ""Norwegian Krone"" ""Singapore Dollar"" ""South African Rand"" ""Sri Lanka Rupee"" ""Swedish Krona"" ""Swiss Franc"" ""Argentine Peso"""
%currency_code = "USD EUR AUD BRL GBP CAD CNY DKK HKD INR JPY KRW MYR MXN NZD NOK SGD ZAR LKR SEK CHF ARS"
[Change log]
- 2011/02/11 Able to retrieve the data with more than 500 observations