Skip to content
Prev 6358 / 15274 Next

Problem with getFX

Thanks for the reply. This is the traceback:

 > traceback()
6: stop("NROW(x) must match length(order.by)")
5: xts(as.numeric(fr[1:length(fr)%%2 != 1]), as.Date(fr[1:length(fr)%%2 ==
        1], "%m/%d/%Y", origin = "1970-01-01"), src = "oanda", updated = 
Sys.time())
4: getSymbols.oanda(Symbols = Currencies, from = from, to = to,
        env = env, verbose = verbose, warning = warning, auto.assign = 
auto.assign,
        ...)
3: getFX("EUR/GBP", from = (Sys.Date() - 499), to = Sys.Date())
2: get(getFX("EUR/GBP", from = (Sys.Date() - 499), to = Sys.Date()))
1: xts(get(getFX("EUR/GBP", from = (Sys.Date() - 499), to = Sys.Date())))
 >
Sys.Date seems to exist.
 > Sys.Date()
[1] "2010-07-07"

getSymbol works fine for anything but oanda.

Still at a loss there.