fix(filter): add missing ohlcv import and intraday length guard

This commit is contained in:
Youssef Aitousarrah 2026-04-15 12:46:33 -07:00
parent d7e1b93509
commit 7d48ad67bc
1 changed files with 1 additions and 3 deletions

View File

@ -299,9 +299,7 @@ class CandidateFilter:
f"Priority breakdown: {critical_priority} critical, {high_priority} high, {medium_priority} medium, {low_priority} low"
)
def _price_from_cache(
self, ticker: str, ohlcv_data: Dict[str, Any]
) -> Any:
def _price_from_cache(self, ticker: str, ohlcv_data: Dict[str, Any]) -> Any:
"""Return last closing price from OHLCV cache, or None if ticker missing."""
df = ohlcv_data.get(ticker.upper())
if df is None or df.empty or "Close" not in df.columns: