π Spring Boot (Java) | Portfolio Risk Calculation | Financial Technology
"Analyze investment risk and make informed financial decisions with real-time risk assessment."
InvestGuard is a Spring Boot-powered investment risk analysis tool that helps investors calculate portfolio volatility. Users enter stock details, and the system computes risk metrics like standard deviation to assess investment stability.
β
Add Investment Data β Enter stock tickers, investment amounts, and past returns.
β
Risk Calculation β Uses standard deviation to measure investment volatility.
β
Simple UI β Built using HTML, CSS, and JavaScript, served by Spring Boot.
β
REST API β Scalable backend for risk computation.
- Java 17, Spring Boot (REST API & Static Frontend)
- Maven (Dependency Management)
- H2 Database (for fast and efficient storage)
- HTML, CSS, JavaScript
- Fetch API (for REST API calls)
- Bootstrap UI for clean design
git clone https://github.com/negarprh/InvestGuard.git
cd InvestGuardmvn clean install
mvn spring-boot:runβ
Backend & frontend will both run at:
π http://localhost:8080
π Go to:
http://localhost:8080/index.htmlSince the frontend is inside Spring Boot's static/ folder, it's automatically served by the backend.
POST /api/add-stock?ticker=AAPL&amount=5000β Response
"Investment added: AAPL"GET /api/riskβ Response
[
{
"Investment": "AAPL",
"Risk (Std Dev)": 0.025
},
{
"Investment": "MSFT",
"Risk (Std Dev)": 0.020
}
]πΉ Expand financial risk analysis metrics beyond standard deviation
πΉ Store investment data in MySQL/PostgreSQL
πΉ Add a Sharpe Ratio calculator for risk-adjusted returns
πΉ Implement user authentication for secure portfolio management
Negar β Backend & Frontend Developer
π GitHub: negarprh
π§ Email: [email protected]
This project is MIT Licensed β Feel free to use and modify!
