aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorTyler <tyler@tylerhoang.xyz>2026-03-29 18:04:14 -0700
committerTyler <tyler@tylerhoang.xyz>2026-03-29 18:04:14 -0700
commit425874931ffd3e3cef60262f7f0b7cb678629278 (patch)
treeb99dcbba9dba249ee94f9d7caa9986ffe2c23f6f /components
parent678d3290e87a2043b4cb338df6cb93307e91ffc1 (diff)
Add yfinance fallback for historical ratios when FMP quota is exhausted
FMP free tier caps at 250 req/day; hitting the limit caused the Historical Ratios tab to show an error. get_historical_ratios_yfinance now computes margins, ROE, ROA, D/E, P/E, P/B, P/S, and EV/EBITDA directly from yfinance income statements, balance sheets, and price history. FMP functions fall back to this automatically when they receive an empty response. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'components')
-rw-r--r--components/valuation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/valuation.py b/components/valuation.py
index 0c50a28..4dea754 100644
--- a/components/valuation.py
+++ b/components/valuation.py
@@ -640,7 +640,7 @@ def _render_historical_ratios(ticker: str):
metric_rows = get_historical_key_metrics(ticker)
if not ratio_rows and not metric_rows:
- st.info("Historical ratio data unavailable. Requires FMP API key.")
+ st.info("Historical ratio data unavailable.")
return
# Merge both lists by date