Write a PHP program that downloads stock quotes CSV from Yahoo from [login to view URL], for example, [login to view URL] 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
Date,time_t,[login to view URL],[login to view URL],[login to view URL],[login to view URL],IBM.C/O,IBM.C/C,IBM.H/L,[login to view URL],[login to view URL],[login to view URL],....
12-12-12,256826,100,101,99,100.5,.98,.1.01....
Where:
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 [login to view URL] on the previous day, and IBM.Open.2 which will be the [login to view URL] 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.
Hi sir, I can build this for you sir. I have done a similar job recently and I can provide a demo if you want. I'm an experienced Web Developer having worked for 4+ years with PHP, Java, Solr/Lucene, Sphinx Search, Smarty, MySQL, SQL Server, ASP, JavaScript, Ajax, JQuery and CSS.
Please check your inbox(PMB) for further details about my expertises.
Hello!
I think that the best option would be a text configuration file that is passed to the script in the command line.
I'm ready to turning this solution to the code.