One of our subscribers, Russel Brown, wrote the Java example and kindly offered it to those our subscribers who use the JAVA for stock data API. You can download the code here: EODHistoricalDataDownloader.java or on our documentation page with other Java examples. Below we provide more details on the code and author. Thanks, Russel!

About the Java Example

This program was written by Russell Brown and is being released under the GNU GENERAL PUBLIC LICENSE Version 3 in partnership with EOD Historical Data.  Its intended function is to utilise the services provided through the website https://eodhistoricaldata.com by which data for each stock symbol on a given exchange will be downloaded through an API token, saves the data to disk, organizes the data, and read through the classified data such that it will select the top 5 performing symbols for a given date looking back 10 days. 

The code offered is not a program as per say.  It mainly serves to provide a set of routines and algorithms to perform a specific task.  This code for this program can be studied and integrated into any other program at will.  It should be noted that there are pre-requisites and requirements to this program.  Mainly the Java Runtime and compiler, the NetBeans development studio, and the Gson /JSON libraries.  It is quite possible that there are oversights and unintended omissions within the code that will affect the way it runs and is subject to error which in turn will be also unintended. 

You can download the code here EODHistoricalDataDownloader.java or on our documentation page with other Java examples.

Some Words About Author

Russell Brown currently resides in Markham Ontario of Canada.  He has a college degree in computer programming and has worked with a wide variety of programming languages including C++, C#, SQL, PHP, JavaScript, HTML, CSS, JQuery.  Throughout his career, he has worked at various well-known companies including IBM and Apple in a production capacity.

He is a strong believer in a tactical allocation approach to investing by which one own’s stocks and bonds on a long-term basis and the weighting is allocated on a seasonal basis according to the current economic climate, and as the assets are being held periodic contributions are made.

He has taken the Canadian Securities Course with the intention of becoming a financial advisor though had not pursued this path.  He is currently taking courses in business administration at the University of the People.