英文:
In the R library quantmod, is there a new problem with getQuote?
问题
我一直在使用quantmod
包中的getQuote
函数。在过去的几天里,它开始出现HTTP错误消息:
library(quantmod)
getQuote("MSFT")
返回的是"Error in open.connection(con, "rb") : HTTP error 401."
是否有什么停止工作了?
英文:
I've been using getQuote
from the quantmod
package for a while. In the past few days, its begun failing with an HTTP error message:
library(quantmod)
getQuote("MSFT")
which returns "Error in open.connection(con, "rb") : HTTP error 401."
Has something stopped working?
答案1
得分: 3
这是Yahoo Finance服务器的问题。几天后问题解决了。请查看https://github.com/joshuaulrich/quantmod/issues/382获取详细信息。
英文:
This was an issue with the Yahoo Finance servers. It went away after a few days. See https://github.com/joshuaulrich/quantmod/issues/382 for details.
答案2
得分: -1
有一个与Yahoo API相关的问题。执行以下操作。
如果您已加载了该包。
detach("package:quantmod", unload = TRUE)
remotes::install_github("ethanbsmith/quantmod@382_add_session_getQuote")
英文:
There was an issue with Yahoo API. Do this.
if you have already loaded the package.
detach("package:quantmod", unload = TRUE)
remotes::install_github("ethanbsmith/quantmod@382_add_session_getQuote")
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论