Rename options UI label from 距平衡 to 平衡价差.
Clarifies the column shows strike-to-expiry-breakeven spread, not index distance. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -526,7 +526,7 @@ def idx_distance_to_be(idx_px: float | None, be_px: float | None) -> float | Non
|
|||||||
|
|
||||||
|
|
||||||
def strike_distance_to_be(strike: float | None, be_px: float | None) -> float | None:
|
def strike_distance_to_be(strike: float | None, be_px: float | None) -> float | None:
|
||||||
"""行权价与到期平衡的价差(平衡价 - 行权价).链上「距平衡」列用此值."""
|
"""行权价与到期平衡的价差(平衡价 - 行权价).链上「平衡价差」列用此值."""
|
||||||
if strike is None or be_px is None:
|
if strike is None or be_px is None:
|
||||||
return None
|
return None
|
||||||
return round(float(be_px) - float(strike), 2)
|
return round(float(be_px) - float(strike), 2)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<th title="USDC:指数÷卖一;币本位:1÷卖一(卖一为币报价)">杠杆</th>
|
<th title="USDC:指数÷卖一;币本位:1÷卖一(卖一为币报价)">杠杆</th>
|
||||||
<th>买一/张</th>
|
<th>买一/张</th>
|
||||||
<th>到期平衡</th>
|
<th>到期平衡</th>
|
||||||
<th>距平衡</th>
|
<th>平衡价差</th>
|
||||||
<th>操作</th>
|
<th>操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="opt-strike-head-t" class="hidden" hidden>
|
<tr id="opt-strike-head-t" class="hidden" hidden>
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
<div><span class="k">预估权利金</span><span id="opt-order-premium" class="v">—</span></div>
|
<div><span class="k">预估权利金</span><span id="opt-order-premium" class="v">—</span></div>
|
||||||
<div><span class="k">合约杠杆</span><span id="opt-order-leverage" class="v" title="名义价值÷权利金,测算用">—</span></div>
|
<div><span class="k">合约杠杆</span><span id="opt-order-leverage" class="v" title="名义价值÷权利金,测算用">—</span></div>
|
||||||
<div><span class="k">到期平衡</span><span id="opt-order-expiry-be" class="v">—</span></div>
|
<div><span class="k">到期平衡</span><span id="opt-order-expiry-be" class="v">—</span></div>
|
||||||
<div><span class="k">距平衡</span><span id="opt-order-dist-be" class="v">—</span></div>
|
<div><span class="k">平衡价差</span><span id="opt-order-dist-be" class="v">—</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="options-estimate-row">
|
<div class="options-estimate-row">
|
||||||
<div class="opt-est-main">
|
<div class="opt-est-main">
|
||||||
|
|||||||
Reference in New Issue
Block a user