Skip to content

Commit

Permalink
updated to fix problems with quantmod - see joshuaulrich/quantmod#208
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Mar 15, 2018
1 parent 43aa84a commit 57dc2e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Expand Up @@ -33,8 +33,8 @@ get_xr <- memoise::memoise(function(from,to="GBP") {
if (from == "GBP") {
return(1.00)
}
xr <- quantmod::getQuote(paste0(from, to, "=X"))
xr <- xr[1,"Last"]
xr <- quantmod::getQuote(paste0(from, to, "=X"), what="regularMarketPrice")
xr <- xr[1,2]
xr
})

Expand Down

0 comments on commit 57dc2e3

Please sign in to comment.