addons/investment-fees-tracker/README.md
A comprehensive Wealthfolio addon that helps you track and analyze investment fees across your portfolio, providing detailed insights into your investment costs and their impact on returns.
Build the addon:
pnpm build
Package the addon:
pnpm package
Install in Wealthfolio through the addon settings page
To work on this addon:
# Install dependencies
pnpm install
# Start development mode (watches for changes)
pnpm dev
# Start development server with hot reload
pnpm dev:server
# Build for production
pnpm build
# Create distribution package
pnpm bundle
# Type checking
pnpm type-check
This addon demonstrates how to:
ctx.api.activities.getAll() to extract fee information from all
transaction activitiesctx.api.portfolio.getHoldings() to access portfolio data for fee impact
analysisctx.api.settings.get() to retrieve base currency settings for fee
normalizationctx.api.currency.getAll() for multi-currency fee conversionuseFeeSummary, useFeeAnalytics) for complex fee
calculationsfees-page.tsx: Main dashboard page with period selector and
comprehensive fee analyticsfee-overview-cards.tsx: Summary cards displaying key fee metrics and
statisticsfee-history-chart.tsx: Line chart component for visualizing fee trends
over timeaccount-breakdown.tsx: Horizontal bar chart showing fee distribution by
accountfee-categories-chart.tsx: Donut chart for fee category visualizationfee-period-selector.tsx: UI component for switching between time periodsfee-calculation.service.ts: Core service for fee calculations,
analytics, and currency conversionuseFeeSummary hook: Fetches and processes fee summary data across
different periodsuseFeeAnalytics hook: Provides advanced fee analytics and efficiency
metricsuseCurrencyConversion hook: Handles multi-currency fee normalizationMIT License - see the main Wealthfolio project for details.