修复币本位实时盈亏闪烁:禁止ETH盈亏与U混加后被两位小数抹成0

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-20 17:51:46 +08:00
parent f5c553844f
commit 9bb05113f3
4 changed files with 86 additions and 53 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ def sum_options_net_pnl_usdc(
continue
found = True
total += float(pnl)
return round(total, 4) if found else (0.0 if not positions else None)
return round(total, 8) if found else (0.0 if not positions else None)
def build_display_option_positions(