Difference between revisions of "Dow Jones Industrial Average"

From Geohashing
imported>NuclearDog
imported>NuclearDog
Line 11: Line 11:
 
* %d is the two digit day number (Eg, 14)
 
* %d is the two digit day number (Eg, 14)
  
== irc.peeron.com ==
+
{{DJISource
 +
|hostname=irc.peeron.com
 +
|url=http://irc.peeron.com/xkcd/map/data/%Y/%m/%d
 +
|startDate=1970-01-02
 +
|updateSource=unknown
 +
|updateFrequency=unknown
 +
|serverLocation=unknown
 +
|accessRestrictions=This is used by the reference implementation. There are no technical restrictions in place, but no one has come out and stated that this is for public use yet.}}
  
The reference implementation has the DJI values available at:
+
{{DJISource
 
+
|hostname=xkcd.nucleardog.com
http://irc.peeron.com/xkcd/map/data/%Y/%m/%d
+
|url=http://xkcd.nucleardog.com/getdow.php?year=%Y&month=%m&day=%d
 
+
|urlComments=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.
The values available from this source span January 2nd, 1970 until present day. It's update frequency and source is unknown. The server location is unknown.
+
|startDate=1970-01-02
 
+
|updateSource=Google Finance
Although there are no obvious restrictions in place, no one has come out and stated that this is for public use yet.
+
|updateFrequency=hourly
 
+
|serverLocation=Texas, United States
'''Contact:''' Unknown
+
|accessRestrictions=Free for anyone to use up to a reasonable volume. If you need to make tens of thousands of requests daily, feel free to contact me and I'll send you a dump of the database and the update script.
 
+
|contactAccount=NuclearDog}}
== xkcd.nucleardog.com ==
 
 
 
This implementation provides a mySQL backed DJI service. Values can be queried from:
 
 
 
http://xkcd.nucleardog.com/getdow.php?year=%Y&month=%m&day=%d
 
 
 
The year, month and day values are fairly flexible. Leading zeros are not significant. If you request a date that is not in the database, it will return the string 'null'.
 
 
 
The database spans January 2nd, 1970 to the present date.
 
 
 
If you would like it to try and compensate for weekends/other dates with no values, you can pass any value into the GET variable 'compensate', and if you pass it a date with no value, it will work backwards until it finds a date with a value.
 
 
 
The server updates from Google Finance every hour and is located in Texas, United States.
 
 
 
The service is free for public use up to a reasonable volume.
 
 
 
'''Contact:''' NuclearDog
 

Revision as of 03:15, 22 May 2008

The Dow Jones Industrial Index 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 Dow Jones Industrial Index is used 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 DJI 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 on this page on the PHP website. 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
Date Range:1970-01-02 - present
Update Source:unknown
Update Frequency:unknown
Server Location:unknown
Contact:Unknown

The source can be accessed at:

http://irc.peeron.com/xkcd/map/data/%Y/%m/%d
  • Access Restrictions: This is used by the reference implementation. There are no technical restrictions in place, but no one has come out and stated that this is for public use yet.


xkcd.nucleardog.com
Date Range:1970-01-02 - present
Update Source:Google Finance
Update Frequency:hourly
Server Location:Texas, United States
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 volume. If you need to make tens of thousands of requests daily, feel free to contact me and I'll send you a dump of the database and the update script.