getSymbols 仍然可以与 oanda 一起使用吗? [英] Can getSymbols still work with oanda?
问题描述
我想获取货币和金属的数据.当我尝试一些软件包时,很多人建议使用 quantmod.所以我使用了 getSymbols
如下:
I want to get the data of currencies and metals. As I tried some packages, many person suggest quantmod. So I used getSymbols
as the following:
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'
我用过的:
getSymbols("USD/EUR",src="oanda",from="2015-01-01")
我收到了同样的消息.
那么 getSymbols
仍然可以与 Oanda 一起使用吗?
So getSymbols
can still work with Oanda?
另一个问题是我在哪里可以找到 Yahoo、Oanda、Google 等网络服务支持的符号列表?事实上,我不需要股票代码,我只需要未来的符号,例如玉米、黄金和货币.
And another question is where I can find the list of the symbols that the web-service such as Yahoo, Oanda, Google supported? In fact I don't need the stock symbols, I just need the symbols for the future such as corn, gold and the currency.
推荐答案
Oanda 更改了他们的 URL 结构和文件格式.我周末修复了这个问题.您需要查看每个供应商的网站,才能找到他们支持的符号.
Oanda changed their URL structure and file format. I fixed this over the weekend. You would need to look on the website of each respective provider in order to find what symbols they support.
这篇关于getSymbols 仍然可以与 oanda 一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!