Skip to content

Code for downloading and storing iShares ETF historical NAV data.

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE.txt
Notifications You must be signed in to change notification settings

shafiquejamal/ishares-etf-data-download

Repository files navigation

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.

About

Code for downloading and storing iShares ETF historical NAV data.

Resources

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages