As an individual investor in Australia stock market who want to establish your own trading system, one of the most important input is market data. However, market data is not cheap, and market data vendors’ clients are mostly those institutes and fund managers. Their data is too fine for most individual investors and most people don’t like to pay so much for things overqualified.
As most individual investors, I liked to use yahoo-finance to do security analysis. However, maybe due to intellectual property reason, Yahoo Finance stock feed has gone offline years ago, see this thread. Then I checked an alternative such as google finance, however, its APIs are quite limited. After searching for a while, I have to stick to yahoo finance, although its API was down, its website can still provide all the information I needed. What I need to do is to crawl data from those website and wrap APIs to provide historical data in need. This application should be running as a regular job in a server each day, each week and each month. There should be another application running as an API provider which can respond with financial data in certain format such as json. I compared some technical implantations, then was determined to use python for this is a light server and the flask framework in python can provide a concise and efficient solution for such purpose. I don’t like those heavy and redundant solutions. I want to keep them FREE for use, so I got to know aws can provide one-year free use.
In another earlier post of mine, I tried to provide an alternative to Yahoo Finance API in Australian Share Market, however this free service was stopped due to some reasons.
Now I would publicly explain all the technology details and I hope these can help you to build a free restful API for your private use or educational purpose. I believe these technologies can be applied to other areas as well. So I want to divide this project into several sub topics and describe them in separate posts as linked below: