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

the error for unknown symbols is terrible #333

Closed
peterccarl opened this issue Jun 3, 2021 · 1 comment
Closed

the error for unknown symbols is terrible #333

peterccarl opened this issue Jun 3, 2021 · 1 comment
Assignees
Labels

Comments

@peterccarl
Copy link

Description

When I ask for a symbol that might make sense to someone familiar with Yahoo website symbology, I get an obscure error message:

getSymbols("^SPX")
Warning: ^SPX download failed; trying again.
Error in getSymbols.yahoo(Symbols = "^SPX", env = , verbose = FALSE, :
Unable to import “^SPX”.
argument "conn" is missing, with no default

Eventually, I figure out (usually by asking Josh directly) that that's a stupid user error: the spx ticker on Yahoo is "^gspc". D'oh!

Expected behavior

Tell me that the symbol isn't found.

Session Info

I'm using version 0.4.18

@joshuaulrich
Copy link
Owner

Thanks for the report! I'll step through the code to see where this breaks and throw a more informative error.

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

No branches or pull requests

2 participants