Kaynağa Gözat

Update copy trading command feedback and temporarily disable monitoring

- Changed confirmation message to indicate that copy trading configuration has been updated, but monitoring is not started yet.
- Temporarily disabled the background monitoring task to address blocking issues, with a note for debugging.
- Updated user feedback to clarify the current state of copy trading and monitoring.
Carles Sentis 5 gün önce
ebeveyn
işleme
57a08f3e23
2 değiştirilmiş dosya ile 10 ekleme ve 9 silme
  1. 9 8
      src/commands/copy_trading_commands.py
  2. 1 1
      trading_bot.py

+ 9 - 8
src/commands/copy_trading_commands.py

@@ -415,22 +415,23 @@ This will:
             elif callback_data.startswith("copy_start_confirm_"):
                 target_address = callback_data.replace("copy_start_confirm_", "")
                 
-                await query.edit_message_text("🚀 Starting copy trading...")
+                await query.edit_message_text("🚀 Copy trading configuration updated...")
                 
                 if copy_monitor:
-                    # Enable copy trading
+                    # Enable copy trading config but DON'T start monitoring yet (Step 3 debugging)
                     copy_monitor.enabled = True
                     copy_monitor.target_address = target_address
                     
-                    # Start monitoring in background
-                    import asyncio
-                    asyncio.create_task(copy_monitor.start_monitoring())
+                    # TEMPORARILY DISABLED: Start monitoring in background (causes blocking)
+                    # import asyncio
+                    # asyncio.create_task(copy_monitor.start_monitoring())
                     
                     await query.edit_message_text(
-                        f"✅ Copy trading started!\n\n"
+                        f"✅ Copy trading configured but not started!\n\n"
                         f"🎯 Target: {target_address[:10]}...\n"
-                        f"📊 Monitoring active positions and new trades\n\n"
-                        f"Use /copy status to check progress.",
+                        f"⚠️ Monitoring temporarily disabled for debugging\n\n"
+                        f"The start_monitoring() method is causing blocking issues.\n"
+                        f"We need to debug this specific method.",
                         parse_mode='HTML'
                     )
                 else:

+ 1 - 1
trading_bot.py

@@ -14,7 +14,7 @@ from datetime import datetime
 from pathlib import Path
 
 # Bot version
-BOT_VERSION = "3.0.327"
+BOT_VERSION = "3.0.328"
 
 # Add src directory to Python path
 sys.path.insert(0, str(Path(__file__).parent / "src"))