https://github.com/eraybahar/django-portfolio-app
A Django web app to track investments with live stock/crypto prices using yfinance.
https://github.com/eraybahar/django-portfolio-app
crypto django finance portfolio stocks tracker webapp yfinance
Last synced: 3 months ago
JSON representation
A Django web app to track investments with live stock/crypto prices using yfinance.
- Host: GitHub
- URL: https://github.com/eraybahar/django-portfolio-app
- Owner: ErayBahar
- License: mit
- Created: 2025-06-06T04:58:56.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-09T12:11:29.000Z (4 months ago)
- Last Synced: 2025-06-17T05:01:51.624Z (4 months ago)
- Topics: crypto, django, finance, portfolio, stocks, tracker, webapp, yfinance
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💼 Django Portfolio Tracker
Track your investments in real-time with a simple Django web application using live data from Yahoo Finance (`yfinance`).
---
## 🔧 Features
- Add, view, and delete investments
- Real-time stock/crypto prices
- Profit shown in dollars and percentages
- Admin panel for easier management
---## 📦 Installation
1. Clone this repository:
```bash
git clone https://github.com/ErayBahar/django-portfolio-app.git
cd django-portfolio-app
```2. Set up the project:
```bash
# (Optional) Create a virtual environment
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # macOS/Linux# Install all required dependencies
pip install -r requirements.txt# Run database migrations
python manage.py migrate# Create superuser for admin access
python manage.py createsuperuser# Start the development server
python manage.py runserver
```Visit your app at:
http://127.0.0.1:8000/---
## 🔐 Admin Access
Access the admin panel at:
http://127.0.0.1:8000/admin---
## 📁 Project Structure
```
myPortfolioApp/
├── manage.py
├── db.sqlite3
├── requirements.txt
├── portfolio/
│ ├── admin.py
│ ├── models.py
│ ├── views.py
│ ├── urls.py
│ ├── forms.py
│ └── templates/
│ └── portfolio/
│ ├── portfolio_list.html
│ ├── add_investment.html
│ └── delete_investment.html
└── static/ # Optional for CSS/JS
```---
## 💡 Notes
- Make sure you're connected to the internet. The app pulls live stock/crypto prices using `yfinance`.
- Use valid Yahoo Finance symbols like `AAPL`, `GOOGL`, `BTC-USD`, etc.---
## 🧠 Author
Created by Eray Bahar
GitHub: [https://github.com/ErayBahar](https://github.com/ErayBahar)