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

Can't download data from Yahoo Finance again. #165

Closed
Yiming-WANG opened this issue May 28, 2017 · 4 comments
Closed

Can't download data from Yahoo Finance again. #165

Yiming-WANG opened this issue May 28, 2017 · 4 comments

Comments

@Yiming-WANG
Copy link

several days ago, it was fixed. (I downloaded the developer version)
It happened again minutes ago.

d> getSymbols(stockList, src = "yahoo")
Error in curl::curl_download(paste0(yahoo.URL, Symbols.name, "?period1=", :
HTTP error 401.

@joshuaulrich
Copy link
Owner

When reporting an issue, please follow the instructions in "Have a bug report or feature request?" in the contributing guide. In this case, you need to:

  1. "Ensure your fork and local copy are up-to-date, and verify the bug still exists in the HEAD of the master branch." (You are not using the latest development version.)
  2. "Include ... the output from sessionInfo()."

@o7g8
Copy link

o7g8 commented May 28, 2017

Everything works fine for me. The following code loads YHOO data from Yahoo as expected:

library(quantmod)
getSymbols("YHOO")

I've installed a developer version of quantmod with:

devtools::install_github("joshuaulrich/quantmod")

Here is my sessionInfo():

R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.2 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] quantmod_0.4-9 TTR_0.23-1     xts_0.9-7      zoo_1.8-0     

loaded via a namespace (and not attached):
[1] compiler_3.4.0  tools_3.4.0     curl_2.6        grid_3.4.0      lattice_0.20-35

@Yiming-WANG
Copy link
Author

Sorry, I was using quantmod 0.4-8 last night.
There is no problem on quantmod 0.4-9.

@joshuaulrich
Copy link
Owner

Thanks for confirming! Closing as a duplicate of #157.

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

No branches or pull requests

3 participants