Gate one-open-per-expiry by historical expiry_ymd across days.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-03 07:35:44 +08:00
parent 5c334a4d89
commit a10ecf7409
10 changed files with 49 additions and 44 deletions
+2 -2
View File
@@ -302,7 +302,7 @@ export default function PlanPage() {
{fmt(plan?.min_option_leverage, 0)}x · {atmRule}
{plan?.skip_weekends ? " · 周末跳过开仓" : ""}
{plan?.one_expiry_per_day !== false
? " · 同到期日一天只开一次"
? " · 每个到期只开一次"
: ""}
</p>
<p>
@@ -313,7 +313,7 @@ export default function PlanPage() {
<span className="plan-rules-k"></span>
{plan?.rest_seconds ?? "—"}s ·
{plan?.one_expiry_per_day !== false
? " · 同到期平仓后改开下一到期"
? " · 同到期用过后改开下一到期"
: ""}
</p>
</div>
+2 -2
View File
@@ -1230,7 +1230,7 @@ export default function SettingsPage() {
</div>
<div className="field">
<label htmlFor="oneExpDay">
</label>
<select
id="oneExpDay"
@@ -1244,7 +1244,7 @@ export default function SettingsPage() {
<option value="0"></option>
</select>
<p className="hint" style={{ margin: "0.35rem 0 0" }}>
0802 0803
0803/ 0804
</p>
</div>
<div className="field">