Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.29 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.29 KB

ishares-etf-data-download

Requirements

  • At least java 1.8
  • SBT
  • a *nix operating system (Linux or Mac). If you're using Windows, try running Debian or Ubuntu inside VirtualBox.

Installation

Set all of the environment variables that are referenced in src/main/resources/application.conf.

Set the environment variable ISHARES_DATA_DIR to the path to where you will download the files. In the instructions below, this directory is the downloaded_files/ directory in the project root directory. Set SECURITIESDATA_PROJECT_ROOT to point to the project root directory.

Create the postgres databases (both production and test) according to the environment variables you have set.

git clone https://github.com/shafiquejamal/ishares-etf-data-download.git some_directory
cd some_directory
mkdir downloaded_files
sbt -DSECURITIESDATA_DEFAULT_DB_USERNAME=${SECURITIESDATA_DEFAULT_DB_USERNAME} -DSECURITIESDATA_DEFAULT_DB_PASSWORD=${SECURITIESDATA_DEFAULT_DB_PASSWORD} flywayMigrate
sbt assembly
./download_files.sh

The bash script will download the data, then run the .jar file to store the data in your postgres db. You can then run the portfolio analysis project.