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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user