DCF & Valuation
Full discounted cash flow valuation with overridable assumptions, WACC decomposition, implied growth/moat duration, and sensitivity/scenario sweeps.
Run a DCF calculation
POST /v1/dcf/calculate — ticker is required; overrides is an optional object (unknown keys return 422). Valid override keys: projection_years, terminal_growth_rate, revenue_growth, ebitda_margin, da_pct, capex_pct, tax_rate, discount_rate_mode, terminal_value_method, market_cap, net_debt, base_revenue, shares_outstanding, beta, erp, risk_free_rate.
curl -X POST "https://api.cornerdatastore.com/v1/dcf/calculate" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker": "AAPL", "overrides": {"terminal_growth_rate": 0.025}}'{
"ticker": "AAPL",
"valuation_date": "2026-10-28",
"model_version": "v3",
"snapshot_id": "a1b2c3...",
"revenue_projection": [410000000000, 430000000000],
"fcf_projection": [95000000000, 99000000000],
"pv_fcf_projection": [91000000000, 88000000000],
"discount_rate_mode": "capm",
"discount_rates_by_year": [0.085, 0.085],
"enterprise_value": 2850000000000,
"net_debt": -50000000000,
"equity_value": 2900000000000,
"shares_outstanding": 15200000000,
"intrinsic_value_per_share": 190.79,
"current_price": 182.50,
"price_to_intrinsic": 0.96,
"inputs_used": { "...": "full resolved DCFInputs object" },
"derivation_trace": { "...": "step-by-step derivation" },
"_meta": { "model_used": "generic_fcff", "dispatch_reason": "no sector-specific model for SIC" }
}Field names confirmed from the real DCFResult schema; values are illustrative. The exact response shape varies by code path — a cache hit (no overrides, warm Redis) and a sector-specific model dispatch each return a differently-shaped precomputed object; the full field list above is the generic cold-compute path. Check _meta.model_used to know which path served your request. 422 on an unknown override key (with a valid_overrides list in the error body) or on a ValueError from the engine (e.g. insufficient data).
All DCF & valuation endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/dcf/inputs/{ticker} | Resolved risk-free rate, beta, WACC, margins |
| POST | /v1/dcf/calculate | Full DCF valuation with overridable assumptions |
| GET | /v1/dcf/wacc/{ticker} | WACC decomposition |
| GET | /v1/dcf/rate-curve/{ticker} | ACM term-structure discount rate path |
| GET | /v1/dcf/implied-growth/{ticker} | Growth implied by current market price |
| GET | /v1/dcf/implied-growth-corrected/{ticker} | Single-stage corrected implied growth |
| GET | /v1/dcf/duration/{ticker} | Equity duration (PV-weighted cash flow maturity) |
| GET | /v1/dcf/historical/{ticker} | Historical free cash flow build-up |
| GET | /v1/dcf/valuation-inputs/{ticker} | P/E, cash yield, ROIC, reinvestment rate |
| GET | /v1/dcf/implied-cap/{ticker} | Market-implied competitive-advantage-period (moat duration) |
| POST | /v1/dcf/sensitivity | Tornado/sensitivity sweep across assumptions |
| POST | /v1/dcf/scenarios | Multi-scenario comparison table |