© 2025 Rishabh Pandey. All rights reserved.
A simple Flask-based stock tracking web app that allows you to:
- Add, edit, and delete stocks in your portfolio.
- Set target prices or percentages.
- Automatically fetch latest prices (yFinance).
- Receive Discord alerts when targets are reached.
- Archive alerted stocks for future reference.
- Add stocks by name, abbreviation, quantity, and target (price or %).
- Edit or delete existing stocks.
- Dynamic dashboard with price updates, gain/loss highlights.
- One-time alert system that archives a stock after target is hit.
- yFinance for accurate pricing.
- Mobile responsive design for easy access anywhere.
project/
│
├── static/
│ └── style.css # All custom CSS styles and images
│ └── add_edit.css
│ └── delete.css
│ └── favicon.png
│ └── favicon.svg
│ └── 404.png
│
├── templates/
│ ├── 404.html # 404 Page Not Found
│ ├── index.html # Main dashboard UI
│ ├── add_stock.html # Form to add new stocks
│ ├── edit_stock.html # Form to edit existing stocks
│ ├── delete_stock.html # Prompts user to confirm the process or deletion or cancel
│
├── models.py # SQLAlchemy models
├── utils.py # Stock fetch logic (yFinance)
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
└── README.md # Project documentation
- Clone this repo
git clone https://github.com/imRishabh-ofc/asset-alert.git
cd asset-alert- Install dependencies
pip install -r requirements.txt- 📡 Discord Alerts
IMPORTANT Step
- Add your Discord Webhook URL and custom messsage in the app.py file or dont expect the app to work for you. ├── DISCORD_WEBHOOK_URL = "YOUR DISCORD WEBHOOK URL"
- Alerts will be sent once the stock hits your target.
- Alerts are one-time only.
- Run the app
python app.py- Open in browser
Go to http://127.0.0.1:5000/ to access the app.
Flask
requests
yfinance
flask_sqlalchemy
Pull requests are welcome! Feel free to fork and build upon this.
This project is open-source under the MIT License. © 2025 Rishabh Pandey. All rights reserved.