Skip to content
Benny Thadikaran edited this page Aug 19, 2023 · 9 revisions

All Commands assume you are running from the project's src folder.

To sync and download data unto the current date

py init.py

# Output
Updating NSE actions file
Downloading Files
Starting Data Sync
EOD sync complete
Index sync complete.
Makings adjustments for splits and bonus
PDSL: face value split (sub-division) - from rs 10/- per share to rs 2/- per share
Cleaning up files
0 files deleted
26 Aug 2022: Done

EOD2 is designed to run fully automated. You must run init.py regularly to keep data up to date. (Ideally everyday or at least on weekends)

You are better off letting your Operating system run the script automatically at a scheduled time.

Below are links to instructions on scheduling execution of the script. Make sure your computer is switched-On during this period.

For Linux users: Automate eod2 using crontab

For Windows users: Automating Python Scripts Using Windows Task Scheduler

init.py takes 2 arguments:

  • -v or --version to print the current script version.
  • -c or --config to print the current configuration.
py init.py -v
# EOD2 init.py: version 4.0
py init.py -c
# prints the current configuration and version

Apart from init.py there are 2 other scripts:

  • plot.py for plotting and visualizing stock charts
  • dget.py for delivery analysis

You can read about their usage here: