aboutsummaryrefslogtreecommitdiff
path: root/assets/logo.png
diff options
context:
space:
mode:
authorTyler <tyler@tylerhoang.xyz>2026-03-30 19:09:45 -0700
committerTyler <tyler@tylerhoang.xyz>2026-03-30 19:09:45 -0700
commit92b7eae36866c3424f44b4b6a653833a65df91a9 (patch)
tree1ab8d86c74b741d5e1b2e8df2caa6de0b0bc9464 /assets/logo.png
parent8f6199a97c592e68f812d952b41942603723e2ed (diff)
Compute all Key Ratios from raw statements, eliminating FMP ratio calls
Added compute_ttm_ratios() which derives all 16 TTM ratios directly from yfinance quarterly income statements, balance sheets, and cash flow: Valuation: P/E, P/S, P/B, EV/EBITDA, EV/Revenue Profitability: Gross/Operating/Net Margin, ROE, ROA, ROIC Leverage: D/E, Current Ratio, Quick Ratio, Interest Coverage Dividends: Yield, Payout Ratio get_key_ratios() no longer calls FMP's /ratios-ttm or /key-metrics-ttm endpoints, saving ~2 FMP API calls per ticker load (including each Comps peer). Forward P/E still comes from yfinance info dict (analyst estimate). This also fixes EV/EBITDA for all tickers (DDOG was 4998x from FMP/yfinance pre-computed values, now correctly 194x from income statement EBITDA). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'assets/logo.png')
0 files changed, 0 insertions, 0 deletions