Skip to content

Installation

Benny Thadikaran edited this page Mar 24, 2024 · 5 revisions

EOD2 requires Python 3 (version 3.8 or greater) and pip3.

src/eod2_data folder contains all the stock data in daily folder.

IMPORTANT: Make sure to read the wiki on Usage. Please raise an issue or use Discussions if you have difficulty installing or using my scripts. I respond to all issues and questions ☺️

Linux users - use pip3 and python3 for instructions below

Download the repo as zip (See Git instructions below)

1. Download the zip file for this repository and extract the contents.

Open a terminal in the project folder or cd into the project folder. Copy paste the below commands and press enter.

2. Install the dependencies using pip3.

pip install -r requirements.txt

3. Download eod2_data

Run setup.py to download and extract the eod2_data folder. This folder contains all the stock data in daily and delivery folders

py setup.py

4. Sync latest Stock data

cd into src folder and run init.py to get updated with the latest data.

cd src/
py init.py

For Git users

1. To clone the repo and the eod2_data submodule

git clone --recurse-submodules https://github.com/BennyThadikaran/eod2.git

If you cloned the repo without --recurse-submodules and the eod2_data folder is empty, run git submodule update --init to resolve.

2. Install Dependencies with pip

pip install -r requirements.txt

3. Sync latest Stock data

Run src/init.py to get the latest data.

py src/init.py

Updating the GIT repo

New features, bugfixes and code improvements are regularly posted to the repo.

  1. cd into your eod2 folder.
  2. Run git pull to update your code.
  3. Install all dependencies with pip install -r requirements.txt.

This will not update src/eod2_data folder.

Update eod2_data folder

cd into your src/eod2_data folder and run the below commands.

git reset --hard HEAD
git clean -f
git checkout main
git pull

Finally run init.py to sync the data.