The Portfolio API allows users to manage their investment portfolios, including stocks and trades. It includes three primary schemas: Portfolio, Stock, and Trade.
-
Create a Portfolio:
- User can create a portfolio
-
Stock Management:
- Users can add or sell stocks and get average buying price for each and every stock for a particular portfolio
- For any invalid activity validation is already provided.
-
Trade Management:
- Manages all the trades for a particular trade and updates current holdings in the stocks accordingly.
- Clone the GitHub repository.
- Update the
.env
file with appropriate configurations for:- Database connection details
- Run
npm install
to install project dependencies. - Refer to the
Routes
file for API endpoints and use a tool like Postman to test them.