Fix semi open stalls: one-leg asks, OTM realign, clearer pick errors.

Monitor no longer shows ATM Put bias while semi-auto is authorized for Call.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-08 14:43:00 +08:00
parent 4db1e0c470
commit f1e3d5527a
5 changed files with 117 additions and 16 deletions
+15 -7
View File
@@ -489,6 +489,14 @@ export default function PlanPage() {
// 持仓中展示本组成交方向,勿用监控 ATM 的实时盘口信号(会漂)
const heldOpt = String(pos?.option_side || "").toLowerCase();
const heldPerp = String(pos?.perp_side || "").toLowerCase();
const isOo =
plan?.hedge_mode === "option_option" ||
snap?.hedge_mode === "option_option" ||
pos?.hedge_mode === "option_option" ||
!!pos?.option2_inst_id;
const semiOn = !!plan?.semi_auto_enabled && !isOo;
// 半自动:信号=人工看法,勿展示 ATM 盘口比价(会显示成 Put 造成误会)
const biasTag = open ? (
heldOpt === "call" || heldPerp === "short" ? (
<span className="tag up"> Call + </span>
@@ -497,6 +505,13 @@ export default function PlanPage() {
) : (
<span className="tag"></span>
)
) : semiOn ? (
(semiDirty ? semiView : plan?.semi_view_side === "short" ? "short" : "long") ===
"short" ? (
<span className="tag down"> · Put + </span>
) : (
<span className="tag up"> · Call + </span>
)
) : bias === "strike_below_spot" ||
bias === "call_ask_gt_put" ||
bias === "fixed_short_call" ? (
@@ -508,13 +523,6 @@ export default function PlanPage() {
) : (
<span className="tag"> / </span>
);
const isOo =
plan?.hedge_mode === "option_option" ||
snap?.hedge_mode === "option_option" ||
pos?.hedge_mode === "option_option" ||
!!pos?.option2_inst_id;
const semiOn = !!plan?.semi_auto_enabled && !isOo;
const showAmpCard = plan?.oo_amplitude_filter_enabled === true;
// 看法 / 最短小时变化时立刻刷新报价链(小时输入防抖)