signal_log: persist market snapshots

This commit is contained in:
Harwinder Sekhon
2026-08-18 15:24:37 -04:00
parent aa270dc145
commit 0dbd94c03c
5 changed files with 219 additions and 28 deletions
+4 -2
View File
@@ -267,11 +267,12 @@ class SignalAggregator:
f"{symbol}: live session filter errored — filter SKIPPED this scan"
)
self._log_signal(report, log_source)
self._log_signal(report, log_source, dfs)
return report
def _log_signal(
self, report: SignalReport, source: Optional[str]
self, report: SignalReport, source: Optional[str],
dataframes: Optional[Dict[Timeframe, pd.DataFrame]] = None,
) -> None:
"""Persist the scan to the signal-history DB (signal_log.py).
@@ -291,6 +292,7 @@ class SignalAggregator:
context=context,
source=source or "live",
timeframe=self.config.primary_timeframe.value,
dataframes=dataframes,
)
def _apply_regime_filter_live(