fix(binance): show orphan recover banner on trade page load

Trade tab uses refreshPriceSnapshotConditional, not refreshPriceSnapshot; render recover banner there and on server when live exchange position lacks active monitor.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-16 16:59:20 +08:00
parent 7fe7c2e918
commit 6287ca9129
2 changed files with 17 additions and 0 deletions
+4
View File
@@ -6888,6 +6888,9 @@ def render_main_page(page="trade"):
request_obj=request,
trend_cfg=app.extensions.get("strategy_trend_cfg"),
)
orphan_live_positions = []
if not order_list and exchange_private_api_configured():
orphan_live_positions = list_orphan_live_positions(conn)
conn.close()
return render_template(
"index.html",
@@ -6896,6 +6899,7 @@ def render_main_page(page="trade"):
key_history=key_history,
stats_bundle=stats_bundle,
order=order_list,
orphan_live_positions=orphan_live_positions,
record=records,
total=total,
miss_count=miss_count,