Reputation: 2036
I want to to import the currency close price from Yahoo finance or Oanda into R.
I tried to follow the same steps as mentioned in similar question: Import stock price from Yahoo Finance into R?
But I am receiving NA data instead
getQuote("EUR/USD", what=yahooQF("Last Trade (Price Only)"))
Trade Time Last
EUR/USD <NA> N/A
Would appreciate any advises
Upvotes: 1
Views: 1682
Reputation: 2806
I think this is what you're after.
library(quantmod)
getSymbols("EUR=X",src="yahoo")
Upvotes: 1