summaryrefslogtreecommitdiff
path: root/backend/tests/test_api.py
AgeCommit message (Collapse)Author
2026-05-17Add computed beta fallback and FMP short interest fallbackTyler Hoang
- compute_beta: 2y weekly returns vs SPY, cov/var formula, capped ±3, BETA_CACHE TTL=3600 - get_fmp_short_interest: calls FMP /v4/short-of-float-symbol when all yfinance short fields are None - _build_quote_and_stats: accepts sym, uses compute_beta when info["beta"] is None - PERIODS/YF_PERIOD_MAP: added "2y" support - test_api: clear BETA_CACHE and SHORT_CACHE in clear_service_caches Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17Refine overview ratios and shellTyler Hoang
2026-05-17Add stack start and stop scriptsTyler Hoang