- Install packages from requirements.txt (Hint: below install command)
- Run command
python3 main.py
- Add an alias in
~/.bashrc
file execute everything via a commandalias nepse='python3 /path/tofile/liveIndex/main.py'
- At the moment, the index difference is calculated as (
TodaysStartIndex - TodaysLastIndex
). Update it to (YesterdaysLastIndex - TodaysLastIndex
) - If change in points is greater than 40, send email to user notifying the bear or bull market.
- Run the script in cronjon.(Note: after notifying is enabled)
1/5 11-15 * * * /usr/bin/python3 ~/dev/liveIndex/main.py 1
Export:
pip3 freeze > requirements.txtInstall:
pip3 install -r /path/to/requirements.txt