You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Risk Metrics - Volatility, max drawdown, Sharpe ratio
Compare - Compare multiple funds side by side
Screener - Filter funds by type and other criteria
Annotation - Add personal notes to funds for tracking observations
Installation
# Clone projectcd /vol1/1000/projects/fund-analyzer
# Install Go dependencies
go mod tidy
# Build CLI
go build -o fund-analyzer ./cmd/cli/
# Build TUI
go build -o fund-analyzer-tui ./cmd/tui/
# Or use Makefile
make build
Database
Data stored in SQLite at ~/.fund-analyzer/funds.db
Database tables:
funds - Fund basic information
nav_history - NAV historical records
holdings - Fund holdings data
portfolios - Portfolio management
portfolio_holdings - Portfolio fund holdings
annotations - Fund annotation/memo notes
CLI Usage
# Fetch fund data (single fund or all)
fund-analyzer fetch 000001
fund-analyzer fetch
# Analyze fund (risk metrics, performance)
fund-analyzer analyze 000001
# Show NAV history
fund-analyzer nav 000001
# Search funds by name or code
fund-analyzer search 招商
# Show fund holdings
fund-analyzer holdings 000001
# Compare two funds
fund-analyzer compare 000001 110011
# Run backtest (DCA strategy)
fund-analyzer backtest 000001
fund-analyzer backtest 000001 -s 2023-01-01 -e 2024-01-01 -m 1000