I want to get data on currencies and metals. Since I tried some packages, many people offer quantmod. So I used getSymbolsas follows:
getSymbols("USD/EUR",src="oanda")
Error in download.file(paste(oanda.URL, from.date, to.date, "exch=", currency.pair[1], :
cannot open URL 'http://www.oanda.com/convert/fxhistory?lang=en&date1=09%2F28%2F13&date=02%2F09%2F15&date_fmt=us&exch=USD&expr2=EUR&margin_fixed=0&SUBMIT=Get+Table&format=CSV&redirected=1'
In addition: Warning message:
In download.file(paste(oanda.URL, from.date, to.date, "exch=", currency.pair[1], :
cannot open: HTTP status was '404 Not Found'
as i used:
getSymbols("USD/EUR",src="oanda",from="2015-01-01")
I get the same message.
So, getSymbolscan it work with Oanda?
And one more question - where can I find a list of characters supported by a web service such as Yahoo, Oanda, Google? In fact, I do not need stock symbols, I just need symbols for the future, such as corn, gold and currency.
kanpu source
share