【问题标题】:can't download stock data using getSymbols() from quantmod, get SSL error with curl无法使用 quantmod 的 getSymbols() 下载股票数据,使用 curl 获取 SSL 错误
【发布时间】:2020-02-17 01:33:03
【问题描述】:

我正在尝试使用 quantmod 的 getSymbols。 getSymbols("AAPL", src = "yahoo", from = start, to = end) 我收到此错误:

“curl::curl_download(cu, tmp, handle = h) 中的错误: SSL 证书问题:无法获取本地颁发者证书”

我已经卸载了 quantmod 和 curl,忽略了 SSL 错误 (httr::set_config(config(ssl_verifypeer = FALSE))) 并重新安装了 quantmod 和 curl。我也运行了这段代码:brew install libcurl4-openssl-dev。

我仍然得到错误。

【问题讨论】:

    标签: r macos curl


    【解决方案1】:

    原来我的互联网连接是问题所在。我切换到我的移动数据并且代码运行良好。

    【讨论】:

      猜你喜欢
      • 2019-07-04
      • 1970-01-01
      • 2018-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-26
      相关资源
      最近更新 更多