Error with data download through BatchGetSymbols

Hi guys!
I am trying to download historical information on the S&P 500 through the function BatchGetSymbols, but I am getting an error message. Honestly I have no idea on how to fix it, could you please help me out on this? I need to deliver my paper today :frowning:

Here's the code that I am using:

Here's what I am getting as error:
Running BatchGetSymbols for:
tickers =^GSPC
Downloading data for benchmark ticker
^GSPC | yahoo (1|1) | Not Cached - Error in download..
^GSPC | yahoo (1|1) | Not Cached - Error in download..Error in stop_vctrs():
! Input must be a vector, not NULL.
Run rlang::last_error() to see where the error occurred.
Warning messages:
1: Unknown or uninitialised column: ticker.
2: Unknown or uninitialised column: threshold.decision.
3: Unknown or uninitialised column: ticker.
4: Unknown or uninitialised column: price.adjusted.

Thank you so much!

It seems the source is unreachable from your machine at the moment. Are you able to access yahoo finance from your machine outside of R?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.