Stonks is a Python project that leverages the Yahoo Finance API through yfinance
to gather company stock and financial information. This repository provides scripts for retrieving data and generating various reports on the financial health of companies.
Stonks is a project designed to provide a streamlined and focused overview of key financial metrics for companies you care about. The primary goal is to quickly deliver essential insights into specific financial indicators such as debt, revenue growth, and free cash flow. While recognizing that past performance analysis cannot predict a company's future success, the emphasis here is on avoiding investments in companies with insufficient income and unmanageable debt. Stonks aims to empower users with a concise yet comprehensive snapshot of essential financial data, aiding in informed decision-making when considering potential investments.
-
Clone the repository:
git clone https://github.com/jessebutryn/stonks.git && cd stonks
-
Install dependencies:
pip install -r requirements.txt
-
Install package:
pip install -e .
-
Alternatively:
If you don't want to install the module you can just run it from within the repository dir like so:
python3 -m stonks --help
-
Help
usage: stonks [-h] [-f FILE] [--no-color] [--csv] [-H] [--json] [--info {info,balance,income,cashflow,financials}] [-q] [tickers [tickers ...]] Stonks - A financial analysis tool for stock tickers, providing key metrics and scores for informed investment decisions. positional arguments: tickers Stock ticker symbols optional arguments: -h, --help show this help message and exit -f FILE, --file FILE Read ticker symbols from a file --no-color Disable colored output --csv Output in CSV format -H, --header Include header in CSV output --json Output in json format --info {info,balance,income,cashflow,financials} Specify the type of financial information to retrieve -q, --quarterly When used with --info this will return quarterly results instead of annual
-
Example
$ stonks msft --summarize Attribute Value ------------------- ------- Market Cap 2.78T Current Price 374.58 Debt to Equity 0.29 Debt to Earnings 0.41 Earnings Yield 0.03 Current Ratio 1.66 Quick Ratio 1.53 Avg Revenue Growth 12.04% Profit Margin 34.15% Return on Equity 35.09% EPS 10.34 PE 36.23 Avg Cashflow 56.49B Avg Cashflow Growth 7.87% Cashflow Yield 2.03% Score 25.00
pip uninstall stonks