Split OO budget per leg and size Call/Put independently.
Each half of the risk budget buys its own qty from ask; equal qty no longer forced. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -223,7 +223,7 @@ export default function PlanPage() {
|
||||
: `待估算(基数${fmt(plan?.risk_exit_unit ?? 15)})`
|
||||
: `固定 ${fmt(plan?.net_profit_target ?? 15)} U`;
|
||||
const riskRatioLabel = isOo
|
||||
? "Call:Put 1:1"
|
||||
? "预算平分 Call/Put"
|
||||
: `比例${Number(plan?.risk_perp_unit ?? 1)}:${Number(plan?.risk_option_unit ?? 2)}`;
|
||||
const sizingModeLabel = riskBased
|
||||
? [
|
||||
@@ -268,7 +268,16 @@ export default function PlanPage() {
|
||||
"虚值Call@高·Put@低",
|
||||
`剩余≥${fmt(plan?.oo_min_option_hours ?? 24, 0)}h`,
|
||||
`杠杆≥${fmt(plan?.oo_min_leverage ?? 200, 0)}x`,
|
||||
displayOptQty != null ? `单腿${fmt(displayOptQty, 1)}ETH` : null,
|
||||
displayOptQty != null
|
||||
? `Call${fmt(displayOptQty, 1)}/Put${fmt(
|
||||
Number(
|
||||
plan?.risk_sizing_preview?.put_qty_eth ??
|
||||
plan?.oo_put_qty_eth ??
|
||||
displayOptQty,
|
||||
),
|
||||
1,
|
||||
)}ETH`
|
||||
: null,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" · ");
|
||||
|
||||
Reference in New Issue
Block a user