I am going through the quantmod-getQuote() to find a solution to the problem I am running into (link).
When I run the following;
metrics <- yahooQF(c("Name", "Volume", "P/E Ratio", "Dividend Yield", "Shares Outstanding"))
symbols2 <- c("GOOG", "MSFT")
stats <- getQuote(symbols2, what = metrics)
I am able to obtain some yahoo finance statistics on GOOG and MSFT. However when I add the symbol 3888.HK to the list I obtain an error.
symbols2 <- c("GOOG", "MSFT", "3888.HK")
stats <- getQuote(symbols2, what = metrics)
Error message:
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, :
arguments imply differing number of rows: 2, 3
In addition: Warning message:
In getQuote.yahoo(Symbols = c("GOOG", "MSFT", "3888.HK"), what = list( :
symbols have different timezones; converting to local time
Does anybody know of a work around for this, I cannot seem to find what to change in the getQuote() function.