In the R library quantmod, is there a new problem with getQuote?

huangapple go评论59阅读模式
英文:

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")

huangapple
  • 本文由 发表于 2023年4月20日 05:25:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76058920.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定