fix(filter): add missing ohlcv import and intraday length guard
This commit is contained in:
parent
d7e1b93509
commit
7d48ad67bc
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue