A FastAPI REST service that calculates personalized investment allocation across equity, debt, and gold based on user's age and monthly savings.
- Age-Based Portfolio Logic: Implements 6 allocation brackets from age 20 to 60+ based on standard financial planning principles
- Dynamic Equity Split: Automatically divides equity portion into large-cap, mid-cap, and small-cap categories
- Real-Time Calculation: Computes investable amount from salary and expenses, returns INR breakdown instantly
- Auto-Documented API: Interactive Swagger UI for testing endpoints without Postman
- Clean JSON Response: Returns formatted currency values for all asset classes
- Backend: Python 3.14, FastAPI
- Server: Uvicorn ASGI
- Validation: Pydantic query parameters
- Clone the repository
git clone https://github.com/Shivaa7770/investment-allocation-api
cd investment-allocation-api
## ⚠️ Disclaimer
This tool is for educational purposes only and does not constitute financial advice.