An open API service indexing awesome lists of open source software.

https://github.com/theognis1002/stock-checker

S&P500 crawler for ROTC/EY figures
https://github.com/theognis1002/stock-checker

financial-analysis pandas python smtp statistics stock-market

Last synced: 2 months ago
JSON representation

S&P500 crawler for ROTC/EY figures

Awesome Lists containing this project

README

          

## S&P500 Stock Checker

Simple Python script that crawls financial pages for current fundamental ratios and figures. Warren Buffett, through his writings and over the years, has mentioned the following ratios as important:

1. Return on Tangible Capital
- Operating Income / (Net Working Capital + Net Fixed Assets)
1. Earnings Yield
- EBIT/EV (Earnings before interest and taxes / Enterprise Value)

_Note: See TODO list for future additional figures._

The script gets the current S&P500 stocks and collects the above figures for each company. The data is then exported as a CSV file and emailed to the recipient.

---

### TODO LIST

#### S&P500 Crawler
- [x] Return on Tangible Capital
- [x] Earnings Yield
- [x] P/E (financials stocks)
- [ ] Share price
- [ ] Return on Equity
- [x] Debt / Equity
- [x] 10YR Interest Rate
- [ ] Estimated Valuation

#### S&P500 Moving Average
- [x] S&P500 50-day moving average
- [x] S&P500 current share price
---

### Technologies Used

1. Python3.8
1. pandas
1. smtp
1. crontab

---

### Setup

1. Create `.env` using `.env.sample` as reference
- Email app credentials needed (ie; Gmail)
1. `virtualenv venv`
1. `source venv/bin/activate`
1. `pip install -r requirements.txt`

---

### Run

1. `python main.py`