I tried to use tq_get() to get the prices of GSPC and VIX but it fail. Here is my code and the Warning massage.
index_data <- tq_get(c("ˆGSPC", "ˆVIX"),
get = "stock.prices",
from = date_start,
to = date_end)
Warning message:
There was 1 warning in dplyr::mutate().
ℹ In argument: data.. = purrr::map(...).
Caused by warning:
! x = 'ˆGSPC', get = 'stock.prices': Error in getSymbols.yahoo(Symbols = "ˆGSPC", env = , verbose = FALSE, : Unable to import “ˆGSPC”.
HTTP error 403.
Removing ˆGSPC.
Hi,
I tried to use
tq_get()
to get the prices of GSPC and VIX but it fail. Here is my code and the Warning massage.Warning message: