Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with getSymbols #346

Closed
rabarros01 opened this issue Nov 9, 2021 · 5 comments
Closed

Error with getSymbols #346

rabarros01 opened this issue Nov 9, 2021 · 5 comments

Comments

@rabarros01
Copy link

Description

For about two weeks I have been trying to download stock prices from Yahoo Finance using "getSymbols" in quantmod, and for many many stock prices I get the following error message

Warning: Unable to import “UNH”.
argument "conn" is missing, with no default

where UNH is just one of the tickers I get the error message above

Expected behavior

This error should not appear, and the stock prices should be obtainable.

Minimal, reproducible example

For example, the code I am running is

window = 2000
first.date = Sys.Date() - window
last.date = Sys.Date()
freq.data = 'daily'

tickers = c("^GSPC","ACN","BABA","GOOGL","BRK-B","UNH")
data.stocks = getSymbols(tickers, from = first.date, to = last.date, periodicity = "daily")
BRK.B = get("BRK-B")
data = cbind(Cl(GSPC),Cl(ACN),Cl(BABA),Cl(GOOGL),Cl(BRK.B),Cl(UNH))

Kind regards,
rabarros01

@joshuaulrich
Copy link
Owner

Have you updated to the latest development version? This should have been fixed in #333.

@BlueFx
Copy link

BlueFx commented Nov 9, 2021

Hi,
I got the same problem. I use the version 0.4.18 (think it is the latest one).

@joshuaulrich
Copy link
Owner

joshuaulrich commented Nov 9, 2021

0.4.18 is the latest on CRAN. The latest development version is 0.4.18.1.

@rabarros01
Copy link
Author

Hi,

just to let everyone know that the issue has been fixed in quantmod

Kind regards,
rabarros01

@joshuaulrich
Copy link
Owner

Thanks for following up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants