Skip to content

feat(portfolio): add historical P&L, ROI, TWR, and HODL benchmark tracking (#3) - #11

Merged
Code-Kaybee merged 1 commit into
HyperDevTools:mainfrom
cyzcz:feature/portfolio-performance-pnl
Nov 6, 2026
Merged

Code-Kaybee merged 1 commit into
HyperDevTools:mainfrom
cyzcz:feature/portfolio-performance-pnl

Conversation

@cyzcz

@cyzcz cyzcz commented Nov 5, 2026

Copy link
Copy Markdown

Closes #3

Summary

  • Implements computePortfolioFromTrades, calculateTimeWeightedReturn, and calculatePortfolioPerformance in lib/analytics/portfolio.ts supporting realized/unrealized P&L, cost-basis tracking, Time-Weighted Return (TWR), and XLM HODL benchmark comparison.
  • Adds unit tests in __tests__/analytics/portfolio.test.ts.

Validation

  • npm run type-check, npm run lint, npm test, and npm run build pass cleanly.

… yield aggregator, technical indicators, alerts, and data export
@Code-Kaybee
Code-Kaybee merged commit e972659 into HyperDevTools:main Nov 6, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Portfolio Performance Tracking with Historical P&L

3 participants