Fundamental Comparator
Compare key financial metrics across multiple symbols on a single chart. Overlay price charts with fundamentals for direct, side-by-side comparison.
Category
Analysis
Inspired By
- TradingView Fundamental Graphs
- Koyfin
- FinViz
Features
100+ Metrics Available
- Valuation: P/E, P/B, P/S, EV/EBITDA, PEG Ratio
- Profitability: ROE, ROA, ROIC, Net Margin, Gross Margin
- Growth: Revenue Growth, EPS Growth, Free Cash Flow Growth
- Dividends: Yield, Payout Ratio, Dividend Growth Rate
- Debt: Debt/Equity, Interest Coverage, Current Ratio
- Efficiency: Asset Turnover, Inventory Turnover
- Per Share: EPS, Book Value, Revenue, Free Cash Flow
Comparison Modes
- Cross-Company: Compare AAPL vs MSFT vs GOOGL
- Sector Average: Company vs sector benchmark
- Historical: Same company over time
- Peer Group: Auto-selected industry peers
Visualization
- Multi-Line Charts: Overlay any metrics
- Price + Fundamental: Dual-axis charts
- Heatmaps: Sector-wide metric comparison
- Scatter Plots: Correlation analysis (P/E vs Growth)
- Ranking Tables: Sort by any metric
Screening Integration
- Undervalued Finder: P/E < sector + growth > sector
- Quality Score: Composite fundamental rating
- Momentum + Value: Combine technical and fundamental
- Dividend Aristocrats: Filter by dividend history
AI Analysis
- Metric Interpretation: "Why is this P/E ratio concerning?"
- Peer Comparison: "How does this compare to competitors?"
- Trend Analysis: "Are margins improving or declining?"
- Risk Assessment: "What does this debt level mean?"
Usage
import { FundamentalComparator } from 'kit-trading/skills/fundamental-comparator';
const comparator = new FundamentalComparator();
// Compare P/E ratios
const comparison = await comparator.compare(
['AAPL', 'MSFT', 'GOOGL', 'META'],
['peRatio', 'revenueGrowth', 'netMargin']
);
// Get fundamental score
const score = await comparator.score('NVDA');
// { overall: 85, valuation: 60, profitability: 95, growth: 98 }
// Find undervalued stocks
const undervalued = await comparator.screen({
peRatio: { lt: 15 },
revenueGrowth: { gt: 20 },
debtToEquity: { lt: 0.5 }
});
API Endpoints
GET /api/fundamentals/:symbol - Full fundamental data
POST /api/fundamentals/compare - Multi-symbol comparison
GET /api/fundamentals/metrics - Available metrics list
POST /api/fundamentals/screen - Filter by fundamentals
GET /api/fundamentals/:symbol/history - Historical metrics
1---2name: fundamental-comparator3description: Fundamental Comparator4---5# Fundamental Comparator67Compare key financial metrics across multiple symbols on a single chart. Overlay price charts with fundamentals for direct, side-by-side comparison.89## Category10Analysis1112## Inspired By13- TradingView Fundamental Graphs14- Koyfin15- FinViz1617## Features1819### 100+ Metrics Available20- **Valuation**: P/E, P/B, P/S, EV/EBITDA, PEG Ratio21- **Profitability**: ROE, ROA, ROIC, Net Margin, Gross Margin22- **Growth**: Revenue Growth, EPS Growth, Free Cash Flow Growth23- **Dividends**: Yield, Payout Ratio, Dividend Growth Rate24- **Debt**: Debt/Equity, Interest Coverage, Current Ratio25- **Efficiency**: Asset Turnover, Inventory Turnover26- **Per Share**: EPS, Book Value, Revenue, Free Cash Flow2728### Comparison Modes29- **Cross-Company**: Compare AAPL vs MSFT vs GOOGL30- **Sector Average**: Company vs sector benchmark31- **Historical**: Same company over time32- **Peer Group**: Auto-selected industry peers3334### Visualization35- **Multi-Line Charts**: Overlay any metrics36- **Price + Fundamental**: Dual-axis charts37- **Heatmaps**: Sector-wide metric comparison38- **Scatter Plots**: Correlation analysis (P/E vs Growth)39- **Ranking Tables**: Sort by any metric4041### Screening Integration42- **Undervalued Finder**: P/E < sector + growth > sector43- **Quality Score**: Composite fundamental rating44- **Momentum + Value**: Combine technical and fundamental45- **Dividend Aristocrats**: Filter by dividend history4647### AI Analysis48- **Metric Interpretation**: "Why is this P/E ratio concerning?"49- **Peer Comparison**: "How does this compare to competitors?"50- **Trend Analysis**: "Are margins improving or declining?"51- **Risk Assessment**: "What does this debt level mean?"5253## Usage5455```typescript56import { FundamentalComparator } from 'kit-trading/skills/fundamental-comparator';5758const comparator = new FundamentalComparator();5960// Compare P/E ratios61const comparison = await comparator.compare(62 ['AAPL', 'MSFT', 'GOOGL', 'META'],63 ['peRatio', 'revenueGrowth', 'netMargin']64);6566// Get fundamental score67const score = await comparator.score('NVDA');68// { overall: 85, valuation: 60, profitability: 95, growth: 98 }6970// Find undervalued stocks71const undervalued = await comparator.screen({72 peRatio: { lt: 15 },73 revenueGrowth: { gt: 20 },74 debtToEquity: { lt: 0.5 }75});76```7778## API Endpoints7980- `GET /api/fundamentals/:symbol` - Full fundamental data81- `POST /api/fundamentals/compare` - Multi-symbol comparison82- `GET /api/fundamentals/metrics` - Available metrics list83- `POST /api/fundamentals/screen` - Filter by fundamentals84- `GET /api/fundamentals/:symbol/history` - Historical metrics