From d17a1e8c6760d9bd3d490808a8d43d38af53435a Mon Sep 17 00:00:00 2001 From: TIANHE Date: Tue, 13 Jan 2026 04:16:42 +0800 Subject: [PATCH] new Signed-off-by: TIANHE --- .../app/services/pending_order_worker.py | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/backend_api_python/app/services/pending_order_worker.py b/backend_api_python/app/services/pending_order_worker.py index a02858e..c31d8de 100644 --- a/backend_api_python/app/services/pending_order_worker.py +++ b/backend_api_python/app/services/pending_order_worker.py @@ -352,6 +352,7 @@ class PendingOrderWorker: continue # Check for MT5 client (forex) + global MT5Client if MT5Client is None: try: from app.services.mt5_trading import MT5Client as _MT5Client @@ -805,29 +806,6 @@ class PendingOrderWorker: ) return - # Check if this is an MT5 client (Forex) - global MT5Client - if MT5Client is None: - try: - from app.services.mt5_trading import MT5Client as _MT5Client - MT5Client = _MT5Client - except ImportError: - pass - - if MT5Client is not None and isinstance(client, MT5Client): - # Execute MT5 order (separate flow for forex) - self._execute_mt5_order( - order_id=order_id, - order_row=order_row, - payload=payload, - client=client, - strategy_id=strategy_id, - exchange_config=exchange_config, - _notify_live_best_effort=_notify_live_best_effort, - _console_print=_console_print, - ) - return - def _make_client_oid(phase: str = "") -> str: """ Build a client order id.