diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/valuation.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/valuation.py b/components/valuation.py index a168580..e77073f 100644 --- a/components/valuation.py +++ b/components/valuation.py @@ -149,13 +149,9 @@ def _render_ratios(ticker: str): val = info.get(yf_key) return fmt(val) if val is not None else "—" - # Compute EV/EBITDA from income statement EBITDA — yfinance's info["ebitda"] - # is a known bad value for many tickers (miscalculated TTM aggregation). + # Always compute EV/EBITDA from income statement — both FMP and yfinance's + # pre-computed multiples use a bad EBITDA figure for many tickers. def _ev_ebitda() -> str: - # Prefer FMP if available - fmp_val = (ratios or {}).get("enterpriseValueMultipleTTM") or (ratios or {}).get("evToEBITDATTM") - if fmp_val is not None: - return fmt_ratio(fmp_val) ev = info.get("enterpriseValue") ebitda = get_ebitda_from_income_stmt(ticker) if ev and ebitda and ebitda > 0: |
