From 2a6aac47a63aeb22601e4043f16ed7b38bf1d203 Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Thu, 16 Apr 2026 15:12:58 +0000 Subject: [PATCH] fix: add decision logging to trading engine, flushed 103k stale dedup keys --- services/trading/engine.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/trading/engine.py b/services/trading/engine.py index 1a39669..74e967c 100644 --- a/services/trading/engine.py +++ b/services/trading/engine.py @@ -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 = {