fix: skip sentinel buckets in skip-reason logging too

This commit is contained in:
John Doe
2026-04-18 20:40:28 +08:00
parent 562838da83
commit c0ff2b5d76
+3 -1
View File
@@ -1144,9 +1144,11 @@ def scan_and_trade():
success=False, reason=result.get("reason", "unknown"), success=False, reason=result.get("reason", "unknown"),
) )
else: else:
# No signal — show why # No signal — show why (skip sentinel buckets to avoid confusing EV)
for o in outcomes: for o in outcomes:
t_low, t_high = o["range"] t_low, t_high = o["range"]
if t_low == -999 or t_high == 999:
continue
if not in_bucket(forecast_temp, t_low, t_high): if not in_bucket(forecast_temp, t_low, t_high):
continue continue
ask = o["ask"] ask = o["ask"]