-
Notifications
You must be signed in to change notification settings - Fork 25
Usage
Benny Thadikaran edited this page Aug 21, 2023
·
9 revisions
All Commands assume you are running from the project's src
folder.
To sync and download data to 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 every day 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 the 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:
- Plot.py - Basic Usage
- Plot.py - Watchlists and Presets
- Delivery Analysis - Using plot.py and dget.py
- Configuration [ To be updated ]