fix: add decision logging to trading engine, flushed 103k stale dedup keys
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user