Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

© 2025 Rishabh Pandey. All rights reserved.

📈 Personal Stock Tracker AssetAlert (with Discord Alerts)

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.

🚀 Features

  • 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 Structure

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

⚙️ Setup Instructions

  1. Clone this repo
git clone https://github.com/imRishabh-ofc/asset-alert.git
cd asset-alert
  1. Install dependencies
pip install -r requirements.txt
  1. 📡 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.
  1. Run the app
python app.py
  1. Open in browser

Go to http://127.0.0.1:5000/ to access the app.


📝 Requirements

Flask
requests
yfinance
flask_sqlalchemy

🙌 Contribution

Pull requests are welcome! Feel free to fork and build upon this.


📄 License

This project is open-source under the MIT License. © 2025 Rishabh Pandey. All rights reserved.

About

mY FIrst Ever Proejct

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages