diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-17 14:03:58 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-17 14:03:58 -0700 |
| commit | 5cced76ce44db80b6f45021152153138e0c8bc5b (patch) | |
| tree | fc1bbb5dc8093dd7a50ee61052c553bc02d03dfc /frontend/lib | |
| parent | 26dc3e3b130ce42ed2efd526d314a1880a6a79d6 (diff) | |
Add computed beta fallback and FMP short interest fallback
- 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>
Diffstat (limited to 'frontend/lib')
0 files changed, 0 insertions, 0 deletions
