Add HEDGE_PO_MODE instance modes with shared sim/live path.

Lock one mode per instance/subaccount, cross-asset BTC option/ETH perp sizing, combo-U exit, and ship docs/tests/audit.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-14 20:05:25 +08:00
parent ab7a2309ad
commit 5d161b4220
18 changed files with 1215 additions and 115 deletions
+16
View File
@@ -3625,6 +3625,22 @@ html[data-theme="light"] .opt-be-dist-down {
flex-wrap: wrap;
margin: 0 0 12px;
}
.hedge-plan-page-wrap .hp-po-mode-badge {
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.02em;
color: var(--text, #1a1a1a);
opacity: 0.85;
}
.hedge-plan-page-wrap .hp-uly-lock {
display: inline-flex;
gap: 6px;
align-items: center;
}
.hedge-plan-page-wrap .hp-uly-lock .hp-uly-btn:disabled {
opacity: 0.75;
cursor: not-allowed;
}
.hedge-plan-page-wrap .hp-po-gate-inline {
font-size: 0.82rem;
line-height: 1.35;