Let semi-auto reopen nearest expiry; ignore one-expiry-per-day.

Far quarterly skips were masking usable near OTM quotes like 260810.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-08 14:48:07 +08:00
parent f1e3d5527a
commit 5ea54db43b
3 changed files with 42 additions and 21 deletions
+6 -1
View File
@@ -1186,7 +1186,12 @@ class StrategyEngine:
one_expiry_per_day = self.ledger.get_setting_bool(
"one_expiry_per_day", s.one_expiry_per_day
)
if pick is not None and one_expiry_per_day:
# 半自动人工授权:允许同到期再开;全自动仍受一日一到期约束
if (
pick is not None
and one_expiry_per_day
and not is_semi_auto(self.ledger)
):
from .clock import (
expiry_blocked_by_one_per_day,
used_expiry_ymds,