Skip to content

Shivaa7770/investment-allocation-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Age-Based Investment Allocation API

A FastAPI REST service that calculates personalized investment allocation across equity, debt, and gold based on user's age and monthly savings.

Features

  • 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

Tech Stack

  • Backend: Python 3.14, FastAPI
  • Server: Uvicorn ASGI
  • Validation: Pydantic query parameters

How to Run Locally

  1. 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.

About

A backend API built with FastAPI that generates personalized investment allocation recommendations based on age and monthly savings.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages