This question already has an answer here:

I would like the entire price history of both these indices at an end-of-day level, not intra day. Is there an R api that I can use for such an exercise?


marked as duplicate by LocalVolatility, amdopt, skoestlmeier, JejeBelfort, Helin Nov 23 '18 at 7:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I managed to find the Nasdaq on the following website:


Not sure how accurate the data is though.I also found S&P data here:


  • 1
    $\begingroup$ Fred is a government service that is considered accurate, and is used by many professional economists in their work. I would be more suspicious of advertiser supported sites like Yahoo. $\endgroup$ – Alex C Nov 17 '18 at 4:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.