[R-SIG-Finance] quantmod can't get fx currencies ?

Joshua Ulrich josh.m.ulrich at gmail.com
Mon Feb 9 20:08:04 CET 2015


Oanda changed their URL structure and file format. I fixed this over
the weekend:
https://github.com/joshuaulrich/quantmod/issues/36

On Mon, Feb 9, 2015 at 12:52 PM, ce <zadig_1 at excite.com> wrote:
>
> Dear all,
>
> Recently quantmod package can't get FX curries any more . I use R 3.1.2 , updated quantmod to latest.
>
>> library(quantmod)
> Loading required package: xts
> Loading required package: zoo
>
> Attaching package: ‘zoo’
>
> The following objects are masked from ‘package:base’:
>
>     as.Date, as.Date.numeric
>
> Loading required package: TTR
> Version 0.4-0 included new data defaults. See ?getSymbols.
>
>> getFX("EUR/USD",from="2015-01-01")
> 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=01%2F01%2F15&date=02%2F09%2F15&date_fmt=us&exch=EUR&expr2=USD&margin_fixed=0&SUBMIT=Get+Table&format=CSV&redirected=1'
>
> For stocks still works though :
>
>> getSymbols('F')
> [1] "F"
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



-- 
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com



More information about the R-SIG-Finance mailing list