quantmod的替代品,用于获取买入/卖出信息。

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

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

查看这个,似乎Yahoo!不再是quantmod的选项。

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-2.html
匿名

发表评论

匿名网友

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

确定