Difference between revisions of "Dow Jones Industrial Average"

From Geohashing
imported>Tjtrumpet2323
(xkcd.nucleardog.com has wrong values from 2008-05-22 onwards...)
imported>Tjtrumpet2323
m (xkcd.nucleardog.com)
Line 60: Line 60:
 
|startDate=1970-01-02
 
|startDate=1970-01-02
 
|updateSource=finance.google.com
 
|updateSource=finance.google.com
|updateFrequency='''sketchy'''* ''(see note)''
+
|updateFrequency=<span style="background=#faa">'''unreliable'''</span> ''(see note)''
 
|serverLocation=Texas, USA
 
|serverLocation=Texas, USA
 
|accessRestrictions=Free for anyone to use up to a reasonable number of requests. If you plan on making upwards of 10k or 20k requests a day, please consult with me first.
 
|accessRestrictions=Free for anyone to use up to a reasonable number of requests. If you plan on making upwards of 10k or 20k requests a day, please consult with me first.
 
|contactAccount=NuclearDog}}
 
|contactAccount=NuclearDog}}
 
* '''Note:''' As of 17:15, 24 May 2008 (UTC), this source returns <CODE>null</CODE> for [[2008-05-22]] and <CODE>12620.9</CODE> for [[2008-05-23]].  These values should be <CODE>12597.69</CODE> and <CODE>12620.90</CODE> (with the zero) instead.  Please use an alternate Dow source until these problems are fixed.
 
* '''Note:''' As of 17:15, 24 May 2008 (UTC), this source returns <CODE>null</CODE> for [[2008-05-22]] and <CODE>12620.9</CODE> for [[2008-05-23]].  These values should be <CODE>12597.69</CODE> and <CODE>12620.90</CODE> (with the zero) instead.  Please use an alternate Dow source until these problems are fixed.

Revision as of 17:26, 24 May 2008

The Dow Jones Industrial Average is a well known indicator of the overall health of the economy calculated using the current value of a variety of stocks along with the 'Dow Divisor'. The opening value of the Dow Jones Industrial Average is used as an entropy source in the Geohashing algorithm.

If you're programming a geohashing calculator, mapping service or other related service, you'll need a source for the current and historic DJIA value. This page lists known sources and ways to access them and access restrictions.

Conventions

In the following descriptions, tokens will be used in URLs to represent values of the date as specified by the PHP strftime() function. Specifically:

  • %Y is the four digit year (Eg, 1990)
  • %m is the two digit month number (Eg, 03)
  • %d is the two digit day number (Eg, 14)

irc.peeron.com

irc.peeron.com
Date Range:1970-01-02 - present
Update Source:finance.google.com
Update Frequency:weekdays, at 09:35 ET
Server Location:Reston, Virginia, USA
Contact:Zigdon

The source can be accessed at:

http://irc.peeron.com/xkcd/map/data/%Y/%m/%d
  • This is used by the reference implementation.
  • Access Restrictions: There are no technical restrictions in place, but please let User:Zigdon know if you're about to use it heavily.


sctree-it.sytes.net:50324

sctree-it.sytes.net:50324
Date Range:1970-01-02 - present
Update Source:finance.google.com
Update Frequency:weekdays, at 09:35 ET
Server Location:Stamford, CT, USA
Contact:Gandazgul

The source can be accessed at:

http://sctree-it.sytes.net:50324/dow.php?yy=%Y&mm=%m&dd=%d
  • Access Restrictions: There is an additional parameter: &dbg=true, that will print the relevant variables on each step of the process. This page used by my implementation. There are no technical restrictions in place, but please let me (User:Gandazgul) know if you're planning to use it heavily.


finance.yahoo.com

finance.yahoo.com
Date Range:1928-10-01 - present
Update Source:finance.yahoo.com
Update Frequency:daily
Server Location:Probably San Jose, CA
Contact:support@yahoo.com

The source can be accessed at:

http://ichart.finance.yahoo.com/table.csv?s=%5EDJI&a=09&b=1&c=1928&d=%m&e=%d&f=%Y&g=d&ignore=.csv
  • comma-delimited file download with Date,Open,High,Low,Close,Volume,Adjusted Close
  • Access Restrictions: none


Not Functioning Properly

xkcd.nucleardog.com

xkcd.nucleardog.com
Date Range:1970-01-02 - present
Update Source:finance.google.com
Update Frequency:unreliable (see note)
Server Location:Texas, USA
Contact:NuclearDog

The source can be accessed at:

http://xkcd.nucleardog.com/getdow.php?year=%Y&month=%m&day=%d
  • Leading zeros are not significant in year, month and day values. If you request a date which has no value it will return the string 'null'. If you would like to avoid it returning 'null' when requesting days such as weekends, you may pass the GET variable 'compensate' with any value, which will cause it to work backwards from any non-existent days until it finds one with a value and return that instead.
  • Access Restrictions: Free for anyone to use up to a reasonable number of requests. If you plan on making upwards of 10k or 20k requests a day, please consult with me first.
  • Note: As of 17:15, 24 May 2008 (UTC), this source returns null for 2008-05-22 and 12620.9 for 2008-05-23. These values should be 12597.69 and 12620.90 (with the zero) instead. Please use an alternate Dow source until these problems are fixed.