Преглед на файлове

Increment BOT_VERSION to 2.2.130 and refine MarketMonitor notification logic.

- Updated BOT_VERSION for the upcoming release.
- Simplified notification parameters in MarketMonitor to enhance clarity and maintainability.
- Improved code formatting for better readability in notification handling.
Carles Sentis преди 2 дни
родител
ревизия
fc1349526d
променени са 2 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 5 5
      src/monitoring/market_monitor.py
  2. 1 1
      trading_bot.py

+ 5 - 5
src/monitoring/market_monitor.py

@@ -774,8 +774,8 @@ class MarketMonitor:
                                     symbols_with_fills.add(token)
                                     if self.notification_manager:
                                         await self.notification_manager.send_external_trade_notification(
-                                            full_symbol, side_from_fill, amount_from_fill, price_from_fill, 
-                                            action_type, timestamp_dt.isoformat(), realized_pnl
+                                            full_symbol, side_from_fill, amount_from_fill, price_from_fill,
+                                            action_type, timestamp_dt.isoformat()
                                         )
                                     if is_direct_sl_tp_fill and exchange_order_id_from_fill:
                                         order_db = stats.get_order_by_exchange_id(exchange_order_id_from_fill)
@@ -885,9 +885,9 @@ class MarketMonitor:
                                         symbols_with_fills.add(token)
                                         if self.notification_manager:
                                             await self.notification_manager.send_external_trade_notification(
-                                                full_symbol, side_from_fill, amount_from_fill, price_from_fill, 
-                                                f"verified_external_{lc_position_side}_close", 
-                                                timestamp_dt.isoformat(), realized_pnl
+                                                full_symbol, side_from_fill, amount_from_fill, price_from_fill,
+                                                f"verified_external_{lc_position_side}_close",
+                                                timestamp_dt.isoformat()
                                             )
                                         fill_processed_this_iteration = True
                                     else:

+ 1 - 1
trading_bot.py

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