|
@@ -480,7 +480,7 @@ class InfoCommands:
|
|
|
displayed_sl_parent_refs.add(bot_ref_id)
|
|
|
|
|
|
# Also check for pending SL in trade lifecycle (new system)
|
|
|
- lifecycle_manager = stats.trade_lifecycle_manager
|
|
|
+ lifecycle_manager = stats.trade_manager
|
|
|
if lifecycle_manager:
|
|
|
pending_trade = lifecycle_manager.get_lifecycle_by_entry_order_id(exchange_order_id, status='pending')
|
|
|
if pending_trade and pending_trade.get('stop_loss_price'):
|
|
@@ -537,8 +537,8 @@ class InfoCommands:
|
|
|
orders_text += "📭 No open orders\n\n"
|
|
|
|
|
|
# Check for pending SLs from trade lifecycle even if no exchange orders
|
|
|
- if stats and stats.trade_lifecycle_manager:
|
|
|
- pending_sl_trades = stats.trade_lifecycle_manager.get_pending_stop_loss_activations()
|
|
|
+ if stats and stats.trade_manager:
|
|
|
+ pending_sl_trades = stats.trade_manager.get_pending_stop_loss_activations()
|
|
|
|
|
|
if pending_sl_trades:
|
|
|
orders_text += "\n⏳ <b>Pending Stop Loss Activations</b>\n\n"
|