joshuaulrich / quantmod

Quantitative Financial Modelling Framework
http://www.quantmod.com/
GNU General Public License v3.0
794 stars 219 forks source link

getQuote Yahoo Error 404 #386

Closed craigp67 closed 1 year ago

craigp67 commented 1 year ago

When using getQuote from yahoo today, I started to get a 404 error (instead of the 401 error) we'd been getting.

[Describe the issue]

I expected to get a df from get Quote but got the error message shown below instead.

df <- getQuote(QuoteSymbols, src = "yahoo", what=yahooQF(QuoteAttr)) Error in open.connection(con, "rb") : HTTP error 404

Am using Ethan's patch i.e.

packageVersion("quantmod")
[1] ‘0.4.22.1’

Seems like another user, Giovanni, also had this issue and added to the thread of the getQuote Yahoo Error 401 issue.

I tried going back to the CRAN quantmod version 0.4.22 but that just gave the 401 error again instead.

AlessandroManilii commented 1 year ago

Same problem in same conditions reported by @craigp67.

tian-y commented 1 year ago

Same issue for me.

tian-y commented 1 year ago

I found a workaround from the thread on the 401 error #382 Thanks to @theinvestmentbox

remotes::install_github("ljupch0/yfinance")
yfinance::get_price()
joshuaulrich commented 1 year ago

This is a duplicate of #382 and was fixed in #383.