Going deeper – Hadoop for finance
Now that we know how to use Hadoop to perform a simple word count on a fairly large text file, we can take a step further and use Hadoop for quantitative analysis. For a start, we can count the number of historical intraday percentage price changes of a stock.
Obtaining IBM stock prices from Yahoo! Finance
To obtain a dataset, we can use the historical stock prices available from Yahoo! Finance. Using Firefox or any web browser in your CentOS environment, you can download the historical daily prices for a stock counter as a CSV file using the following link
http://ichart.finance.yahoo.com/table.csv?s=IBM
In this example, we will use IBM as our example stock. Download the file to the Downloads
folder of your home ...
Get Mastering Python for Finance now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.