From 1a5d565b03b9c152d759e6cef6e23decfbca58c1 Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 23 Aug 2026 08:23:20 +0800 Subject: [PATCH] =?UTF-8?q?Rename=20options=20UI=20label=20from=20?= =?UTF-8?q?=E8=B7=9D=E5=B9=B3=E8=A1=A1=20to=20=E5=B9=B3=E8=A1=A1=E4=BB=B7?= =?UTF-8?q?=E5=B7=AE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clarifies the column shows strike-to-expiry-breakeven spread, not index distance. Co-authored-by: Cursor --- lib/options/options_pricing_lib.py | 2 +- lib/options/templates/options_panel.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/options/options_pricing_lib.py b/lib/options/options_pricing_lib.py index 67c644e..a61de37 100644 --- a/lib/options/options_pricing_lib.py +++ b/lib/options/options_pricing_lib.py @@ -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) diff --git a/lib/options/templates/options_panel.html b/lib/options/templates/options_panel.html index 79cc819..71ca360 100644 --- a/lib/options/templates/options_panel.html +++ b/lib/options/templates/options_panel.html @@ -76,7 +76,7 @@ 杠杆 买一/张 到期平衡 - 距平衡 + 平衡价差 操作 @@ -119,7 +119,7 @@
预估权利金
合约杠杆
到期平衡
-
距平衡
+
平衡价差