| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
Implements _build_income, _build_balance, _build_cash_flow, and
get_financials() (cached) in data_service.py. Annual mode appends TTM
(income/CF) and MRQ (balance) columns; quarterly mode returns up to 8
periods. Adds annual_frame helper and 5 TDD tests covering column
labels, TTM sums, MRQ values, FCF computation, and empty-statement
graceful returns. Test count: 19 → 24.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
|
|
|
|
|
|
pd.isna() on a numpy array returns an array, not a scalar, causing
ValueError in the boolean context. Wrapping in try/except restores
get_company_info() for tickers like NFLX whose .info includes array
fields. Also suppress FutureWarning in compute_beta pct_change calls.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- 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>
|
|
|
|
|