From d4fb7f90cda5cb0cceea40600c5cfad9208a2a37 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 21 三月 2025 10:24:32 +0800
Subject: [PATCH] 策略里面不自动撤卖

---
 trade/huaxin/huaxin_trade_api.py |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/trade/huaxin/huaxin_trade_api.py b/trade/huaxin/huaxin_trade_api.py
index ea17fed..c2e25a9 100644
--- a/trade/huaxin/huaxin_trade_api.py
+++ b/trade/huaxin/huaxin_trade_api.py
@@ -85,14 +85,14 @@
                     # 濡傛灉鎴愪氦浜嗛渶瑕佸埛鏂板鎵樺垪琛�
                     huaxin_trade_data_update.add_delegate_list("涔版垚浜�")
             need_cancel = TradeResultProcessor.process_buy_order(order)
-            if need_cancel:
-                # 闇�瑕佹挙涔板崟
-                threading.Thread(target=lambda: cancel_order(TRADE_DIRECTION_SELL, order.code, order.orderSysID),
-                                 daemon=True).start()
+            # if need_cancel:
+            #     # 闇�瑕佹挙涔板崟
+            #     threading.Thread(target=lambda: cancel_order(TRADE_DIRECTION_SELL, order.code, order.orderSysID),
+            #                      daemon=True).start()
             need_watch_cancel = TradeResultProcessor.process_sell_order(order)
-            if need_watch_cancel:
-                # 闇�瑕佹挙鍗栧崟
-                threading.Thread(target=lambda: __cancel_order(order.code, order.orderRef), daemon=True).start()
+            # if need_watch_cancel:
+            #     # 闇�瑕佹挙鍗栧崟
+            #     threading.Thread(target=lambda: __cancel_order(order.code, order.orderRef), daemon=True).start()
         finally:
             try:
                 # 鍔犲叆2娆★紝澧炲ぇ鍔犲叆鎴愬姛鐜�

--
Gitblit v1.8.0