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