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:
dekun
2026-08-23 08:23:20 +08:00
parent af3bc5f62a
commit 1a5d565b03
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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:
"""行权价与到期平衡的价差(平衡价 - 行权价).链上「平衡」列用此值."""
"""行权价与到期平衡的价差(平衡价 - 行权价).链上「平衡价差」列用此值."""
if strike is None or be_px is None:
return None
return round(float(be_px) - float(strike), 2)
+2 -2
View File
@@ -76,7 +76,7 @@
<th title="USDC:指数÷卖一;币本位:1÷卖一(卖一为币报价)">杠杆</th>
<th>买一/张</th>
<th>到期平衡</th>
<th>平衡</th>
<th>平衡价差</th>
<th>操作</th>
</tr>
<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-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-dist-be" class="v"></span></div>
<div><span class="k">平衡价差</span><span id="opt-order-dist-be" class="v"></span></div>
</div>
<div class="options-estimate-row">
<div class="opt-est-main">