Menu

Requests for ^DJI stopped working...

Help
Jarred
2010-09-16
2013-06-03
  • Jarred

    Jarred - 2010-09-16

    F::Q has been updating our intranet home page for years.  A couple of days ago requests for ^DJI (dow average) started coming back empty.  Is anyone else seeing this?

     
  • Bill Adams

    Bill Adams - 2010-10-13

    It stopped working for me as well. Still looking for a fix.

     
  • Bill Adams

    Bill Adams - 2010-10-13

    It is a yahoo problem. The URL that gets called is basically http://finance.yahoo.com/d?f=s+n+l1&e=.csv&s=^DJI but yahoo returns that the symbol is missing. (The URL is built in Finance::Quote::Yahoo::Base.) Using other symbols works fine.

     
  • Jarred

    Jarred - 2010-10-14

    I read something about the Dow being a private company now.  Guess there may be legal concerns.  Changing the exchange to "yahoo_europe" when calling fetch seems to work for now.

     
  • Jarred

    Jarred - 2010-12-07

    … and now yahoo_europe no longer works.  Anyone find a different exchange that works?  You'd think there'd be a way to retrieve it from "fool" (Motley Fool) but I've been unsuccessful so far.

     
  • Erik Colson

    Erik Colson - 2010-12-07

    Hello

    I'm the current maintainer of F::Q and thank you for using this software.
    Please note however that I'm not a web geek and therefor I'm not following forums dedicated to F::Q. This is pure coincidence that I saw your posts. Please use the mailing lists. I do read the mails but response is not always very fast :/

    Regarding this problem, I figured that yahoo_europe is still working correctly, but Yahoo modified the ^DJI symbol.
    The URL used to retrieve data is:
    http://uk.finance.yahoo.com/d/quotes.csv?f=snl1c1p2vbapomwerdyj1a2c4t1d1qr1&e=.csv&s=^DJI
    which returns a "symbol is missing" statement.

    Doing some research I found that the symbol ^DJI has been changed into ^DJI.US
    On my system I do get correct results.

    Best

    erik colson

     
  • Jarred

    Jarred - 2010-12-09

    Outstanding!  Unfortunately, the symbol returned in the results is "^DJI" and not the requested "^DJI.US".  This prevents "F::Q" from being able to process it.  Added the below line to Yahoo\Base.pm around line 178 so that the symbol "^DJI" is changed to "^DJI.US" in the url but not in the symbol list.  It's a hack but I'm back in business.  $url =~ s/\^DJI/\^DJI.US/;

    Thanks!

     

Log in to post a comment.