quantmod的替代品用于买卖信息

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

Alternative to quantmod for bid/ask info

问题

以前我用这个方法获取收盘的买入/卖出价格:

library("quantmod")
getQuote(Symbols = symbols, 
           src = "yahoo",
           what=yahooQF(c("Bid","Ask", "Volume")))

现在我遇到了错误:

Error in .yahooSession(TRUE) : unable to get yahoo crumb

根据这个链接的内容,似乎quantmod不再支持Yahoo!。

使用src = "av"也无法返回买入/卖出信息。
Tiingo也不提供这些信息。

对于每天少于十个报价的R用户,是否有免费的解决方案可以获取买入/卖出信息?

英文:

Previously I used this to get closing bid/ask prices:

library("quantmod")
getQuote(Symbols = symbols, 
           src = "yahoo",
           what=yahooQF(c("Bid","Ask", "Volume")))

Now I get the error:

Error in .yahooSession(TRUE) : unable to get yahoo crumb
> packageVersion('quantmod')
[1] ‘0.4.24’

Reading this it appears that Yahoo! is no longer an option with quantmod.

src = "av" doesn't return bid/ask info.
Neither does Tiingo

Is there a free solution for R users for less than ten quotes per day for bid/ask info?

答案1

得分: 1

quantmod在运行以下代码后恢复正常工作:

remotes::install_github("ethanbsmith/quantmod@fix_404_handle_getquote_gdpr_errors")

来源:ethanbsmith, Github

英文:

quantmod is working again after running:

remotes::install_github("ethanbsmith/quantmod@fix_404_handle_getquote_gdpr_errors")

Source: ethanbsmith, Github

huangapple
  • 本文由 发表于 2023年8月9日 11:50:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76864454.html
匿名

发表评论

匿名网友

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

确定