修复价格快照接口 NameError:补全 order_prices 初始化。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-20 18:13:01 +08:00
parent 703ab4a04e
commit 4eef0d9fd6
+1
View File
@@ -5802,6 +5802,7 @@ def api_price_snapshot():
}
)
order_prices = []
for r in order_rows:
margin = float(r["margin_capital"] or 0)
leverage = float(r["leverage"] or 0)