英文:
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")
英文:
quantmod
is working again after running:
remotes::install_github("ethanbsmith/quantmod@fix_404_handle_getquote_gdpr_errors")
Source: ethanbsmith, Github
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论