Description
Implement GET /api/portfolio/summary (or GET /api/investments/summary) that returns for the authenticated investor: total invested, total received (payouts), breakdown by offering. Use existing investment and distribution repositories.
Requirements and context
- Implement only in new files or by extending investments route. Do not modify
package.json, src/index.ts. Require JWT (investor).
Suggested execution
- Branch:
git checkout -b feature/portfolio-summary-api
- Add handler and service; add tests. Example commit message:
feat(api): add portfolio summary for investor
Guidelines
- Additive route only. Timeframe: 96 hours.