https://github.com/highstimrequired/iv-dcf
A Yahoo Finance powered Python program for finding the Intrinsic value of a stock using the DCF method. One-shotted using OpenAI's o3-mini-high.
https://github.com/highstimrequired/iv-dcf
ai dcf finance python
Last synced: over 1 year ago
JSON representation
A Yahoo Finance powered Python program for finding the Intrinsic value of a stock using the DCF method. One-shotted using OpenAI's o3-mini-high.
- Host: GitHub
- URL: https://github.com/highstimrequired/iv-dcf
- Owner: HighStimRequired
- License: mit
- Created: 2025-02-04T00:49:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-04T01:32:39.000Z (over 1 year ago)
- Last Synced: 2025-02-04T02:27:06.340Z (over 1 year ago)
- Topics: ai, dcf, finance, python
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IV-DCF
**IV-DCF** is a Python desktop application that calculates a stock’s intrinsic value using the **Discounted Cash Flow (DCF)** method. It leverages real-time financial data from [yfinance](https://pypi.org/project/yfinance/) to project future cash flows, apply discount rates, and estimate an intrinsic value per share. The app sports a dark, cozy theme with light blue accents, and it provides an option to export the calculated data to a user-specified file.
## Features
- **DCF Calculation** – Automatically calculates projected Free Cash Flows, discounts them, and computes a Terminal Value using the Gordon Growth Model.
- **Real-Time Data** – Fetches real-time financial metrics (e.g., free cash flow, shares outstanding) via yfinance.
- **Customizable Inputs** – Lets you modify discount rate, growth rate, terminal growth rate, and forecast period.
- **Dark UI Theme** – Aesthetic dark background with light-blue accents for a cozy, readable interface.
- **Export to File** – Exports the entire calculation and company data to a user-selected text file.
## Requirements
- **Python 3.7+**
- **yfinance** (for financial data retrieval)
- **tkinter** (bundled with most Python installations)
## Installation
1. **Clone or Download** the repository:
```bash
git clone https://github.com/yourusername/IV-DCF.git
cd IV-DCF
```
2. **Install Dependencies**:
```bash
pip install PyQt5 Pillow reportlab pdfkit markdown cairosvg
```
3. **Run the Application**:
```bash
python iv_dcf_app.py
```
## Usage
1. **Launch** the `iv_dcf_app.py` script.
2. **Enter** your desired stock ticker (e.g., `AAPL`), discount rate, growth rate, terminal growth rate, and forecast period.
3. **Click** the **"Calculate Intrinsic Value"** button to perform the DCF analysis.
4. **View** the results, including projected free cash flows, discounted values, terminal value, and overall intrinsic value.
5. **Export** the detailed calculation and company data by clicking **"Export Data"**, choosing your preferred export location.
## Project Structure
- **ivdcf.py** – Main Python script containing the Tkinter GUI and DCF calculation logic.
- **README.md** – Project documentation (this file).
## Contributing
1. **Fork** the project.
2. **Create** a new branch for your feature or bugfix.
3. **Commit** your changes and **open** a pull request.
## License
This project is available under the **MIT License**. See the [LICENSE](LICENSE) file for more information.