Keep OO amplitude refreshed while holding a position.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -766,14 +766,25 @@ export default function PlanPage() {
|
||||
: "—"}
|
||||
</span>
|
||||
<span className="pos-meta-item mono">
|
||||
{fmt(pos?.option2_qty_eth, 2)} ETH ·{" "}
|
||||
{fmt(pos?.option2_qty_contracts, 0)} 张
|
||||
{fmt(
|
||||
pos?.option2_qty_eth ??
|
||||
plan?.oo_put_qty_eth ??
|
||||
plan?.risk_sizing_preview?.put_qty_eth,
|
||||
2,
|
||||
)}{" "}
|
||||
ETH · {fmt(pos?.option2_qty_contracts, 0)} 张
|
||||
</span>
|
||||
<span
|
||||
className="pos-meta-item mono"
|
||||
title="开仓指数÷开仓均价"
|
||||
>
|
||||
杠杆 {fmt(pos?.option2_leverage, 0)}x
|
||||
杠杆{" "}
|
||||
{pos?.option2_leverage != null
|
||||
? `${fmt(pos.option2_leverage, 0)}x`
|
||||
: optionLevLabel(
|
||||
pos?.entry_index_px ?? snap?.index_px,
|
||||
pos?.option2_entry_px,
|
||||
)}
|
||||
</span>
|
||||
</div>
|
||||
<div className="pos-grid">
|
||||
@@ -788,8 +799,8 @@ export default function PlanPage() {
|
||||
<span className="pos-value mono">
|
||||
{fmtBidLiqEx(
|
||||
"option",
|
||||
pos?.option2_mark_px,
|
||||
pos?.option2_bid_sz,
|
||||
pos?.option2_mark_px ?? snap?.put?.bid,
|
||||
pos?.option2_bid_sz ?? snap?.put?.bid_sz,
|
||||
)}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user