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:
|
||||
"""行权价与到期平衡的价差(平衡价 - 行权价).链上「距平衡」列用此值."""
|
||||
"""行权价与到期平衡的价差(平衡价 - 行权价).链上「平衡价差」列用此值."""
|
||||
if strike is None or be_px is None:
|
||||
return None
|
||||
return round(float(be_px) - float(strike), 2)
|
||||
|
||||
Reference in New Issue
Block a user