Write a PHP program that downloads stock quotes CSV from Yahoo from http://ichart.finance.yahoo.com/table.csv?s=, for example, http://ichart.finance.yahoo.com/table.csv?s=IBM will download a CSV of IBM.
This should be a Linux console application (you can execute wget/curl), that in its command line receives several tickers (like IBM MSFT GOOG etc.), downloads them, and outputs the following output in CSV:
// first line is titles
C/O is the open/close (division)
C/C is the close divided by the close of the previous day
H/L is open/low
time_t is the linux time_t for the date in the file. long int.
there also should be a possibility to specify in the command line which of the columns above to output. The user can select to output only a part of them.
In addition to the above specified columns, there should be another possibility to add more columns of the form IBM.Open.1 which will be the IBM.Open on the previous day, and IBM.Open.2 which will be the IBM.Open 2 days ago, etc. The command line interface should provide a simple way to specify this info, or instead of command line, a text config file.
The code must be well documented, to be maintained by developers who are not familiar with PHP.