@openfinclaw/findoo-datahub-plugin 2026.3.2 → 2026.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/DESIGN.md +492 -151
  2. package/_vendor/claude-skills-finance/SKILL.md +192 -0
  3. package/_vendor/claude-skills-finance/assets/dcf_analysis_template.md +184 -0
  4. package/_vendor/claude-skills-finance/assets/expected_output.json +161 -0
  5. package/_vendor/claude-skills-finance/assets/forecast_report_template.md +177 -0
  6. package/_vendor/claude-skills-finance/assets/sample_financial_data.json +219 -0
  7. package/_vendor/claude-skills-finance/assets/variance_report_template.md +122 -0
  8. package/_vendor/claude-skills-finance/references/financial-ratios-guide.md +396 -0
  9. package/_vendor/claude-skills-finance/references/forecasting-best-practices.md +294 -0
  10. package/_vendor/claude-skills-finance/references/valuation-methodology.md +255 -0
  11. package/_vendor/claude-skills-finance/scripts/budget_variance_analyzer.py +406 -0
  12. package/_vendor/claude-skills-finance/scripts/dcf_valuation.py +449 -0
  13. package/_vendor/claude-skills-finance/scripts/forecast_builder.py +494 -0
  14. package/_vendor/claude-skills-finance/scripts/ratio_calculator.py +432 -0
  15. package/index.ts +356 -20
  16. package/openclaw.plugin.json +12 -19
  17. package/package.json +1 -1
  18. package/references/cn-market-specifics.md +165 -0
  19. package/references/crypto-analysis.md +635 -0
  20. package/references/financial-ratios-cn.md +452 -0
  21. package/references/hk-market-specifics.md +166 -0
  22. package/references/macro-cycle-cn.md +409 -0
  23. package/references/valuation-cn.md +427 -0
  24. package/skills/README.md +294 -0
  25. package/skills/a-concept-cycle/skill.md +200 -0
  26. package/skills/a-convertible-arb/skill.md +294 -0
  27. package/skills/a-dividend-king/skill.md +187 -0
  28. package/skills/a-earnings-season/skill.md +221 -0
  29. package/skills/a-index-timer/skill.md +192 -0
  30. package/skills/a-ipo-new/skill.md +297 -0
  31. package/skills/a-northbound-decoder/skill.md +185 -0
  32. package/skills/a-quant-board/skill.md +286 -0
  33. package/skills/a-share/skill.md +347 -0
  34. package/skills/a-share-radar/skill.md +185 -0
  35. package/skills/cross-asset/skill.md +202 -0
  36. package/skills/crypto/skill.md +269 -0
  37. package/skills/crypto-altseason/skill.md +208 -0
  38. package/skills/crypto-btc-cycle/skill.md +231 -0
  39. package/skills/crypto-defi-yield/skill.md +181 -0
  40. package/skills/crypto-funding-arb/skill.md +158 -0
  41. package/skills/crypto-stablecoin-flow/skill.md +149 -0
  42. package/skills/data-query/skill.md +124 -30
  43. package/skills/derivatives/skill.md +188 -35
  44. package/skills/etf-fund/skill.md +216 -0
  45. package/skills/factor-screen/skill.md +186 -0
  46. package/skills/hk-china-internet/skill.md +190 -0
  47. package/skills/hk-dividend-harvest/skill.md +192 -0
  48. package/skills/hk-hsi-pulse/skill.md +154 -0
  49. package/skills/hk-southbound-alpha/skill.md +163 -0
  50. package/skills/hk-stock/skill.md +295 -0
  51. package/skills/macro/skill.md +244 -53
  52. package/skills/risk-monitor/skill.md +171 -0
  53. package/skills/us-dividend/skill.md +162 -0
  54. package/skills/us-earnings/skill.md +149 -0
  55. package/skills/us-equity/skill.md +235 -0
  56. package/skills/us-etf/skill.md +261 -0
  57. package/skills/us-sector-rotation/skill.md +223 -0
  58. package/src/config.ts +4 -5
  59. package/src/datahub-client.test.ts +4 -7
  60. package/src/datahub-client.ts +6 -1
  61. package/src/register-tools.ts +720 -0
  62. package/src/tool-helpers.ts +89 -0
  63. package/test/e2e/l3-gateway-bootstrap.live.test.ts +354 -0
  64. package/test/e2e/l4-skill-tool-chain.live.test.ts +461 -0
  65. package/test/e2e/l5-browser/data-freshness.live.test.ts +379 -0
  66. package/test/e2e/l5-browser/market-data-chat.live.test.ts +259 -0
  67. package/test/e2e/l5-browser/skills-registry.test.ts +282 -0
  68. package/skills/crypto-defi/skill.md +0 -69
  69. package/skills/equity/skill.md +0 -64
  70. package/skills/market-radar/skill.md +0 -47
@@ -0,0 +1,192 @@
1
+ ---
2
+ name: financial-analyst
3
+ description: Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making
4
+ ---
5
+
6
+ # Financial Analyst Skill
7
+
8
+ ## Overview
9
+
10
+ Production-ready financial analysis toolkit providing ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction. Designed for financial analysts with 3-6 years experience performing financial modeling, forecasting & budgeting, management reporting, business performance analysis, and investment analysis.
11
+
12
+ ## 5-Phase Workflow
13
+
14
+ ### Phase 1: Scoping
15
+
16
+ - Define analysis objectives and stakeholder requirements
17
+ - Identify data sources and time periods
18
+ - Establish materiality thresholds and accuracy targets
19
+ - Select appropriate analytical frameworks
20
+
21
+ ### Phase 2: Data Analysis & Modeling
22
+
23
+ - Collect and validate financial data (income statement, balance sheet, cash flow)
24
+ - Calculate financial ratios across 5 categories (profitability, liquidity, leverage, efficiency, valuation)
25
+ - Build DCF models with WACC and terminal value calculations
26
+ - Construct budget variance analyses with favorable/unfavorable classification
27
+ - Develop driver-based forecasts with scenario modeling
28
+
29
+ ### Phase 3: Insight Generation
30
+
31
+ - Interpret ratio trends and benchmark against industry standards
32
+ - Identify material variances and root causes
33
+ - Assess valuation ranges through sensitivity analysis
34
+ - Evaluate forecast scenarios (base/bull/bear) for decision support
35
+
36
+ ### Phase 4: Reporting
37
+
38
+ - Generate executive summaries with key findings
39
+ - Produce detailed variance reports by department and category
40
+ - Deliver DCF valuation reports with sensitivity tables
41
+ - Present rolling forecasts with trend analysis
42
+
43
+ ### Phase 5: Follow-up
44
+
45
+ - Track forecast accuracy (target: +/-5% revenue, +/-3% expenses)
46
+ - Monitor report delivery timeliness (target: 100% on time)
47
+ - Update models with actuals as they become available
48
+ - Refine assumptions based on variance analysis
49
+
50
+ ## Tools
51
+
52
+ ### 1. Ratio Calculator (`scripts/ratio_calculator.py`)
53
+
54
+ Calculate and interpret financial ratios from financial statement data.
55
+
56
+ **Ratio Categories:**
57
+
58
+ - **Profitability:** ROE, ROA, Gross Margin, Operating Margin, Net Margin
59
+ - **Liquidity:** Current Ratio, Quick Ratio, Cash Ratio
60
+ - **Leverage:** Debt-to-Equity, Interest Coverage, DSCR
61
+ - **Efficiency:** Asset Turnover, Inventory Turnover, Receivables Turnover, DSO
62
+ - **Valuation:** P/E, P/B, P/S, EV/EBITDA, PEG Ratio
63
+
64
+ ```bash
65
+ python scripts/ratio_calculator.py sample_financial_data.json
66
+ python scripts/ratio_calculator.py sample_financial_data.json --format json
67
+ python scripts/ratio_calculator.py sample_financial_data.json --category profitability
68
+ ```
69
+
70
+ ### 2. DCF Valuation (`scripts/dcf_valuation.py`)
71
+
72
+ Discounted Cash Flow enterprise and equity valuation with sensitivity analysis.
73
+
74
+ **Features:**
75
+
76
+ - WACC calculation via CAPM
77
+ - Revenue and free cash flow projections (5-year default)
78
+ - Terminal value via perpetuity growth and exit multiple methods
79
+ - Enterprise value and equity value derivation
80
+ - Two-way sensitivity analysis (discount rate vs growth rate)
81
+
82
+ ```bash
83
+ python scripts/dcf_valuation.py valuation_data.json
84
+ python scripts/dcf_valuation.py valuation_data.json --format json
85
+ python scripts/dcf_valuation.py valuation_data.json --projection-years 7
86
+ ```
87
+
88
+ ### 3. Budget Variance Analyzer (`scripts/budget_variance_analyzer.py`)
89
+
90
+ Analyze actual vs budget vs prior year performance with materiality filtering.
91
+
92
+ **Features:**
93
+
94
+ - Dollar and percentage variance calculation
95
+ - Materiality threshold filtering (default: 10% or $50K)
96
+ - Favorable/unfavorable classification with revenue/expense logic
97
+ - Department and category breakdown
98
+ - Executive summary generation
99
+
100
+ ```bash
101
+ python scripts/budget_variance_analyzer.py budget_data.json
102
+ python scripts/budget_variance_analyzer.py budget_data.json --format json
103
+ python scripts/budget_variance_analyzer.py budget_data.json --threshold-pct 5 --threshold-amt 25000
104
+ ```
105
+
106
+ ### 4. Forecast Builder (`scripts/forecast_builder.py`)
107
+
108
+ Driver-based revenue forecasting with rolling cash flow projection and scenario modeling.
109
+
110
+ **Features:**
111
+
112
+ - Driver-based revenue forecast model
113
+ - 13-week rolling cash flow projection
114
+ - Scenario modeling (base/bull/bear cases)
115
+ - Trend analysis using simple linear regression (standard library)
116
+
117
+ ```bash
118
+ python scripts/forecast_builder.py forecast_data.json
119
+ python scripts/forecast_builder.py forecast_data.json --format json
120
+ python scripts/forecast_builder.py forecast_data.json --scenarios base,bull,bear
121
+ ```
122
+
123
+ ## Knowledge Bases
124
+
125
+ | Reference | Purpose |
126
+ | ------------------------------------------ | ----------------------------------------------------- |
127
+ | `references/financial-ratios-guide.md` | Ratio formulas, interpretation, industry benchmarks |
128
+ | `references/valuation-methodology.md` | DCF methodology, WACC, terminal value, comps |
129
+ | `references/forecasting-best-practices.md` | Driver-based forecasting, rolling forecasts, accuracy |
130
+
131
+ ## Templates
132
+
133
+ | Template | Purpose |
134
+ | ------------------------------------ | -------------------------------- |
135
+ | `assets/variance_report_template.md` | Budget variance report template |
136
+ | `assets/dcf_analysis_template.md` | DCF valuation analysis template |
137
+ | `assets/forecast_report_template.md` | Revenue forecast report template |
138
+
139
+ ## Industry Adaptations
140
+
141
+ ### SaaS
142
+
143
+ - Key metrics: MRR, ARR, CAC, LTV, Churn Rate, Net Revenue Retention
144
+ - Revenue recognition: subscription-based, deferred revenue tracking
145
+ - Unit economics: CAC payback period, LTV/CAC ratio
146
+ - Cohort analysis for retention and expansion revenue
147
+
148
+ ### Retail
149
+
150
+ - Key metrics: Same-store sales, Revenue per square foot, Inventory turnover
151
+ - Seasonal adjustment factors in forecasting
152
+ - Gross margin analysis by product category
153
+ - Working capital cycle optimization
154
+
155
+ ### Manufacturing
156
+
157
+ - Key metrics: Gross margin by product line, Capacity utilization, COGS breakdown
158
+ - Bill of materials cost analysis
159
+ - Absorption vs variable costing impact
160
+ - Capital expenditure planning and ROI
161
+
162
+ ### Financial Services
163
+
164
+ - Key metrics: Net Interest Margin, Efficiency Ratio, ROA, Tier 1 Capital
165
+ - Regulatory capital requirements
166
+ - Credit loss provisioning and reserves
167
+ - Fee income analysis and diversification
168
+
169
+ ### Healthcare
170
+
171
+ - Key metrics: Revenue per patient, Payer mix, Days in A/R, Operating margin
172
+ - Reimbursement rate analysis by payer
173
+ - Case mix index impact on revenue
174
+ - Compliance cost allocation
175
+
176
+ ## Key Metrics & Targets
177
+
178
+ | Metric | Target |
179
+ | ---------------------------- | ---------------------------- |
180
+ | Forecast accuracy (revenue) | +/-5% |
181
+ | Forecast accuracy (expenses) | +/-3% |
182
+ | Report delivery | 100% on time |
183
+ | Model documentation | Complete for all assumptions |
184
+ | Variance explanation | 100% of material variances |
185
+
186
+ ## Input Data Format
187
+
188
+ All scripts accept JSON input files. See `assets/sample_financial_data.json` for the complete input schema covering all four tools.
189
+
190
+ ## Dependencies
191
+
192
+ **None** - All scripts use Python standard library only (`math`, `statistics`, `json`, `argparse`, `datetime`). No numpy, pandas, or scipy required.
@@ -0,0 +1,184 @@
1
+ # DCF Valuation Analysis
2
+
3
+ ## Report Header
4
+
5
+ | Field | Value |
6
+ |-------|-------|
7
+ | **Company** | [Company Name] |
8
+ | **Ticker** | [Ticker Symbol] |
9
+ | **Analysis Date** | [Date] |
10
+ | **Prepared By** | [Analyst Name] |
11
+ | **Current Share Price** | $[X] |
12
+ | **Shares Outstanding** | [X]M |
13
+
14
+ ## Executive Summary
15
+
16
+ [2-3 sentence overview of the valuation conclusion, including the implied value range per share compared to the current market price, and whether the stock appears undervalued, fairly valued, or overvalued.]
17
+
18
+ ### Valuation Summary
19
+
20
+ | Method | Enterprise Value | Equity Value | Value Per Share | vs Current Price |
21
+ |--------|-----------------|-------------|----------------|-----------------|
22
+ | DCF (Perpetuity Growth) | $[X]M | $[X]M | $[X] | [X]% |
23
+ | DCF (Exit Multiple) | $[X]M | $[X]M | $[X] | [X]% |
24
+ | Comparable Companies | $[X]M | $[X]M | $[X] | [X]% |
25
+ | **Blended Estimate** | **$[X]M** | **$[X]M** | **$[X]** | **[X]%** |
26
+
27
+ ## Investment Thesis
28
+
29
+ [Summary of the investment case, including key strengths, risks, and catalysts.]
30
+
31
+ ## Historical Financial Summary
32
+
33
+ | ($M) | FY-4 | FY-3 | FY-2 | FY-1 | LTM |
34
+ |------|------|------|------|------|-----|
35
+ | Revenue | [X] | [X] | [X] | [X] | [X] |
36
+ | Revenue Growth | [X]% | [X]% | [X]% | [X]% | [X]% |
37
+ | Gross Profit | [X] | [X] | [X] | [X] | [X] |
38
+ | Gross Margin | [X]% | [X]% | [X]% | [X]% | [X]% |
39
+ | EBITDA | [X] | [X] | [X] | [X] | [X] |
40
+ | EBITDA Margin | [X]% | [X]% | [X]% | [X]% | [X]% |
41
+ | Net Income | [X] | [X] | [X] | [X] | [X] |
42
+ | Free Cash Flow | [X] | [X] | [X] | [X] | [X] |
43
+
44
+ ## WACC Calculation
45
+
46
+ ### Cost of Equity (CAPM)
47
+
48
+ | Component | Value | Source |
49
+ |-----------|-------|--------|
50
+ | Risk-Free Rate | [X]% | [10-Year Treasury] |
51
+ | Equity Risk Premium | [X]% | [Damodaran / internal] |
52
+ | Beta (Levered) | [X] | [Bloomberg / regression] |
53
+ | Size Premium | [X]% | [Duff & Phelps] |
54
+ | Company-Specific Risk | [X]% | [Analyst judgment] |
55
+ | **Cost of Equity** | **[X]%** | |
56
+
57
+ ### Cost of Debt
58
+
59
+ | Component | Value |
60
+ |-----------|-------|
61
+ | Pre-Tax Cost of Debt | [X]% |
62
+ | Tax Rate | [X]% |
63
+ | After-Tax Cost of Debt | [X]% |
64
+
65
+ ### Capital Structure
66
+
67
+ | Component | Market Value ($M) | Weight |
68
+ |-----------|------------------|--------|
69
+ | Equity | [X] | [X]% |
70
+ | Debt | [X] | [X]% |
71
+ | **Total Capital** | **[X]** | **100%** |
72
+
73
+ ### WACC Result: [X]%
74
+
75
+ ## Revenue Projections
76
+
77
+ | ($M) | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 |
78
+ |------|--------|--------|--------|--------|--------|
79
+ | Revenue | [X] | [X] | [X] | [X] | [X] |
80
+ | Growth Rate | [X]% | [X]% | [X]% | [X]% | [X]% |
81
+
82
+ **Key Revenue Assumptions:**
83
+ - [Assumption 1 with supporting rationale]
84
+ - [Assumption 2 with supporting rationale]
85
+ - [Assumption 3 with supporting rationale]
86
+
87
+ ## Free Cash Flow Projections
88
+
89
+ | ($M) | Year 1 | Year 2 | Year 3 | Year 4 | Year 5 |
90
+ |------|--------|--------|--------|--------|--------|
91
+ | Revenue | [X] | [X] | [X] | [X] | [X] |
92
+ | EBIT | [X] | [X] | [X] | [X] | [X] |
93
+ | Taxes on EBIT | ([X]) | ([X]) | ([X]) | ([X]) | ([X]) |
94
+ | NOPAT | [X] | [X] | [X] | [X] | [X] |
95
+ | D&A | [X] | [X] | [X] | [X] | [X] |
96
+ | CapEx | ([X]) | ([X]) | ([X]) | ([X]) | ([X]) |
97
+ | Change in NWC | ([X]) | ([X]) | ([X]) | ([X]) | ([X]) |
98
+ | **Unlevered FCF** | **[X]** | **[X]** | **[X]** | **[X]** | **[X]** |
99
+ | FCF Margin | [X]% | [X]% | [X]% | [X]% | [X]% |
100
+
101
+ ## Terminal Value
102
+
103
+ ### Perpetuity Growth Method
104
+
105
+ | Component | Value |
106
+ |-----------|-------|
107
+ | Terminal FCF | $[X]M |
108
+ | Terminal Growth Rate | [X]% |
109
+ | WACC | [X]% |
110
+ | **Terminal Value** | **$[X]M** |
111
+ | TV as % of EV | [X]% |
112
+
113
+ ### Exit Multiple Method
114
+
115
+ | Component | Value |
116
+ |-----------|-------|
117
+ | Terminal EBITDA | $[X]M |
118
+ | Exit EV/EBITDA Multiple | [X]x |
119
+ | **Terminal Value** | **$[X]M** |
120
+ | TV as % of EV | [X]% |
121
+
122
+ ## Enterprise Value Bridge
123
+
124
+ | Component | Perpetuity Growth | Exit Multiple |
125
+ |-----------|------------------|---------------|
126
+ | PV of Projected FCFs | $[X]M | $[X]M |
127
+ | PV of Terminal Value | $[X]M | $[X]M |
128
+ | **Enterprise Value** | **$[X]M** | **$[X]M** |
129
+ | Less: Net Debt | ($[X]M) | ($[X]M) |
130
+ | Less: Minority Interest | ($[X]M) | ($[X]M) |
131
+ | **Equity Value** | **$[X]M** | **$[X]M** |
132
+ | Diluted Shares (M) | [X] | [X] |
133
+ | **Value Per Share** | **$[X]** | **$[X]** |
134
+
135
+ ## Sensitivity Analysis
136
+
137
+ ### WACC vs Terminal Growth Rate (Enterprise Value, $M)
138
+
139
+ | WACC \ Growth | [g-2]% | [g-1]% | [g]% | [g+1]% | [g+2]% |
140
+ |--------------|--------|--------|------|--------|--------|
141
+ | [WACC-2]% | [X] | [X] | [X] | [X] | [X] |
142
+ | [WACC-1]% | [X] | [X] | [X] | [X] | [X] |
143
+ | **[WACC]%** | [X] | [X] | **[X]** | [X] | [X] |
144
+ | [WACC+1]% | [X] | [X] | [X] | [X] | [X] |
145
+ | [WACC+2]% | [X] | [X] | [X] | [X] | [X] |
146
+
147
+ ### Implied Share Price Range
148
+
149
+ | Scenario | Share Price | vs Current | Upside/Downside |
150
+ |----------|-----------|------------|----------------|
151
+ | Bear Case (WACC+2%, g-2%) | $[X] | [X]% | [X]% |
152
+ | Base Case | $[X] | [X]% | [X]% |
153
+ | Bull Case (WACC-2%, g+2%) | $[X] | [X]% | [X]% |
154
+
155
+ ## Key Risks to Valuation
156
+
157
+ 1. **[Risk 1]** - [Description and potential impact on value]
158
+ 2. **[Risk 2]** - [Description and potential impact on value]
159
+ 3. **[Risk 3]** - [Description and potential impact on value]
160
+
161
+ ## Comparable Company Analysis
162
+
163
+ | Company | EV/Revenue | EV/EBITDA | P/E | Growth | Margin |
164
+ |---------|-----------|----------|-----|--------|--------|
165
+ | [Comp 1] | [X]x | [X]x | [X]x | [X]% | [X]% |
166
+ | [Comp 2] | [X]x | [X]x | [X]x | [X]% | [X]% |
167
+ | [Comp 3] | [X]x | [X]x | [X]x | [X]% | [X]% |
168
+ | [Comp 4] | [X]x | [X]x | [X]x | [X]% | [X]% |
169
+ | **Median** | **[X]x** | **[X]x** | **[X]x** | **[X]%** | **[X]%** |
170
+ | **[Target]** | **[X]x** | **[X]x** | **[X]x** | **[X]%** | **[X]%** |
171
+
172
+ ## Conclusion and Recommendation
173
+
174
+ **Valuation Range:** $[Low] - $[High] per share
175
+
176
+ **Current Price:** $[X]
177
+
178
+ **Recommendation:** [Buy / Hold / Sell]
179
+
180
+ [Final paragraph with investment recommendation rationale, key upside catalysts, and primary risks to monitor.]
181
+
182
+ ---
183
+
184
+ *Analysis generated using Financial Analyst Skill - DCF Valuation Model*
@@ -0,0 +1,161 @@
1
+ {
2
+ "_description": "Expected output structure for all 4 scripts. Values are illustrative to show data format.",
3
+
4
+ "ratio_calculator_output": {
5
+ "categories": {
6
+ "profitability": {
7
+ "roe": {
8
+ "value": 0.25,
9
+ "formula": "Net Income / Total Equity",
10
+ "name": "Return on Equity",
11
+ "interpretation": "Good - above average performance"
12
+ },
13
+ "roa": {
14
+ "value": 0.1375,
15
+ "formula": "Net Income / Total Assets",
16
+ "name": "Return on Assets",
17
+ "interpretation": "Excellent - significantly above peers"
18
+ },
19
+ "gross_margin": {
20
+ "value": 0.40,
21
+ "formula": "(Revenue - COGS) / Revenue",
22
+ "name": "Gross Margin",
23
+ "interpretation": "Acceptable - within normal range"
24
+ },
25
+ "operating_margin": {
26
+ "value": 0.16,
27
+ "formula": "Operating Income / Revenue",
28
+ "name": "Operating Margin",
29
+ "interpretation": "Good - above average performance"
30
+ },
31
+ "net_margin": {
32
+ "value": 0.11,
33
+ "formula": "Net Income / Revenue",
34
+ "name": "Net Margin",
35
+ "interpretation": "Good - above average performance"
36
+ }
37
+ },
38
+ "liquidity": {
39
+ "current_ratio": {"value": 1.875, "name": "Current Ratio"},
40
+ "quick_ratio": {"value": 1.4375, "name": "Quick Ratio"},
41
+ "cash_ratio": {"value": 0.625, "name": "Cash Ratio"}
42
+ },
43
+ "leverage": {
44
+ "debt_to_equity": {"value": 0.545, "name": "Debt-to-Equity Ratio"},
45
+ "interest_coverage": {"value": 6.67, "name": "Interest Coverage Ratio"},
46
+ "dscr": {"value": 2.50, "name": "Debt Service Coverage Ratio"}
47
+ },
48
+ "efficiency": {
49
+ "asset_turnover": {"value": 1.25, "name": "Asset Turnover"},
50
+ "inventory_turnover": {"value": 8.57, "name": "Inventory Turnover"},
51
+ "receivables_turnover": {"value": 8.33, "name": "Receivables Turnover"},
52
+ "dso": {"value": 43.8, "name": "Days Sales Outstanding"}
53
+ },
54
+ "valuation": {
55
+ "pe_ratio": {"value": 81.82, "name": "Price-to-Earnings Ratio"},
56
+ "pb_ratio": {"value": 20.45, "name": "Price-to-Book Ratio"},
57
+ "ps_ratio": {"value": 9.0, "name": "Price-to-Sales Ratio"},
58
+ "ev_ebitda": {"value": 45.7, "name": "EV/EBITDA"},
59
+ "peg_ratio": {"value": 6.82, "name": "PEG Ratio"}
60
+ }
61
+ }
62
+ },
63
+
64
+ "dcf_valuation_output": {
65
+ "wacc": 0.085,
66
+ "projected_revenue": [55000000, 59950000, 64746000, 69278220, 73434953],
67
+ "projected_fcf": [6600000, 7793500, 8416980, 9698951, 10280893],
68
+ "terminal_value": {
69
+ "perpetuity_growth": 175382225,
70
+ "exit_multiple": 176243484
71
+ },
72
+ "enterprise_value": {
73
+ "perpetuity_growth": 149500000,
74
+ "exit_multiple": 150100000
75
+ },
76
+ "equity_value": {
77
+ "perpetuity_growth": 142500000,
78
+ "exit_multiple": 143100000
79
+ },
80
+ "value_per_share": {
81
+ "perpetuity_growth": 14.25,
82
+ "exit_multiple": 14.31
83
+ },
84
+ "sensitivity_analysis": {
85
+ "wacc_values": [0.065, 0.075, 0.085, 0.095, 0.105],
86
+ "growth_values": [0.015, 0.020, 0.025, 0.030, 0.035],
87
+ "enterprise_value_table": "5x5 nested list of enterprise values",
88
+ "share_price_table": "5x5 nested list of share prices"
89
+ }
90
+ },
91
+
92
+ "budget_variance_output": {
93
+ "executive_summary": {
94
+ "period": "Q4 2025",
95
+ "company": "Acme Corp",
96
+ "total_line_items": 10,
97
+ "material_variances_count": 3,
98
+ "favorable_count": 4,
99
+ "unfavorable_count": 6,
100
+ "revenue": {
101
+ "actual": 15700000,
102
+ "budget": 15500000,
103
+ "variance_amount": 200000,
104
+ "variance_pct": 1.29
105
+ },
106
+ "expenses": {
107
+ "actual": 13255000,
108
+ "budget": 12520000,
109
+ "variance_amount": 735000,
110
+ "variance_pct": 5.87
111
+ },
112
+ "net_impact": -535000
113
+ },
114
+ "material_variances": [
115
+ {
116
+ "name": "Cost of Goods Sold",
117
+ "budget_variance_amount": 600000,
118
+ "budget_variance_pct": 8.33,
119
+ "favorability": "Unfavorable"
120
+ }
121
+ ],
122
+ "department_summary": {
123
+ "Sales": {"total_variance": 0, "variance_pct": 0},
124
+ "Operations": {"total_variance": 0, "variance_pct": 0}
125
+ },
126
+ "category_summary": {
127
+ "Revenue": {"total_variance": 0, "variance_pct": 0},
128
+ "COGS": {"total_variance": 0, "variance_pct": 0}
129
+ }
130
+ },
131
+
132
+ "forecast_builder_output": {
133
+ "trend_analysis": {
134
+ "trend": {
135
+ "slope": 650000,
136
+ "intercept": 9500000,
137
+ "r_squared": 0.98,
138
+ "direction": "upward"
139
+ },
140
+ "average_growth_rate": 0.06,
141
+ "seasonality_index": [0.92, 0.97, 1.01, 1.10]
142
+ },
143
+ "scenario_comparison": {
144
+ "comparison": [
145
+ {"scenario": "base", "total_revenue": 185000000, "growth_rate": 0.08},
146
+ {"scenario": "bull", "total_revenue": 210000000, "growth_rate": 0.12},
147
+ {"scenario": "bear", "total_revenue": 165000000, "growth_rate": 0.05}
148
+ ]
149
+ },
150
+ "rolling_cash_flow": {
151
+ "weeks": 13,
152
+ "opening_balance": 2500000,
153
+ "closing_balance": 2800000,
154
+ "total_inflows": 4200000,
155
+ "total_outflows": 3900000,
156
+ "minimum_balance": 2100000,
157
+ "minimum_balance_week": 4,
158
+ "cash_runway_weeks": 12
159
+ }
160
+ }
161
+ }