5

I am trying to get the data for the Dow Jones Index from google. I have tried a number of things but they do not seem to work.

require(quantmod)
getSymbols(".DJI",src = "google")
getSymbols("^DJI",src = "google")
getSymbols("INDEXDJX:.DJI",src = "google")
Gavin Simpson
  • 170,508
  • 25
  • 396
  • 453
adam.888
  • 7,686
  • 17
  • 70
  • 105
  • Just curious, why do you want to get price data from Google finance? Have you found it to be superior to Yahoo finance in any way? – GSee Jun 12 '12 at 14:18
  • Yahoo Finance is great. I just was trying to get it to work with google. – adam.888 Jun 16 '12 at 22:31

1 Answers1

3

The error is "HTTP: 404 Not Found". That means the page getSymbols uses doesn't exist for the Dow Jones Index (it also does not exist for the S&P500 and the Nasdaq Composite). There's nothing quantmod can do if Google doesn't provide the data...

Gavin Simpson
  • 170,508
  • 25
  • 396
  • 453
Joshua Ulrich
  • 173,410
  • 32
  • 338
  • 418