The aim of this project is to develop an automated script to send daily summary of previous day's stock performance over email. This is intended for passive investors who would wan't to receive a daily digest of all the stocks they's invested in and their net profit. There is a sentiment analysis component, which fetches trending news related to each stock, analyses weather it is positive or negative providing insights on how might the stock perform in future.
- Yahoo Finance
- NewsAPI
- json
- pandas
- time
- datetime
- newsapi
- nltk
- source.py: Primary Python3 script with all core functionality.
- portfolio.json: JSON format file with details of all the stocks with purchase price.
- meta_mail.txt: A meta file containing details of the recepient of the email, subject line and sendor.
- send_mail.sh: A shell script to execute the source.py script.
The following line is to be added in crontab to schedule daily execution at 7:00AM (12:00PM UTC).
0 12 * * * /usr/bin/sh /home/ubuntu/hanlon_project/send_mail.sh
- Change the API call interval to include only trade hours.
- Add time dependent stocks, with date on which to sell.
- Connect to a database, for portfolio and other metadata.