AlphaEngine is an interactive web application built with Flask and Python. It computes the optimal asset allocation for an investment portfolio by minimizing risk using Modern Portfolio Theory (MPT), and generates an interactive donut chart with Plotly.
- Real-Time Market Data: Fetches live financial data using the Yahoo Finance API (
yfinance). - Mathematical Optimization: Uses the SLSQP algorithm (
scipy.optimize) to calculate the optimal asset weights for minimum portfolio variance. - Modern Web Dashboard: A clean, responsive interface featuring dynamic input fields built with JavaScript.
- Interactive Visualizations: Renders a sleek, responsive donut chart using Plotly.
- Backend: Python, Flask
- Math & Data Science: NumPy, SciPy, Pandas
- Financial Data: yfinance
- Visualization: Plotly
- Frontend: HTML5, CSS3, JavaScript
Follow these steps to run the project locally on your machine:
-
Clone the repository: git clone https://github.com/EventHorizon-dev/AlphaEngine.git cd AlphaEngine
-
Install the required dependencies: pip install -r requirements.txt
-
Run the Flask application: python moteur.py
-
Open your browser and navigate to: http://127.0.0.1:5000
AlphaEngine/
│
├── moteur.py # Main Flask application logic
├── requirements.txt # Project dependencies
├── README.md # Project documentation
└── templates/
└── index.html # Frontend dashboard interface
Developed with passion by EventHorizon-dev. Feel free to check out my other projects on GitHub!