fix: add decision logging to trading engine, flushed 103k stale dedup keys

This commit is contained in:
Celes Renata
2026-04-16 15:12:58 +00:00
parent c114e77b1c
commit 2a6aac47a6
+9
View File
@@ -630,6 +630,15 @@ class TradingEngine:
earnings_calendar=self._earnings_calendar,
)
logger.info(
"Decision for %s: %s (reason=%s, size=$%.2f, shares=%d)",
decision.ticker,
decision.decision,
decision.skip_reason or "n/a",
decision.computed_position_size or 0,
decision.computed_share_quantity or 0,
)
# For "act" decisions: push order to broker queue
if decision.decision == "act":
order_job = {