From d72997698bfc1a1582e10928e75a4353766c5b3c Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 07 Jul 2026 21:47:20 +0800
Subject: [PATCH] fix(gateApi): 止盈触发时不撤销止损的逻辑

---
 src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java b/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
index 0975e60..b19b33f 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -599,7 +599,7 @@
         if (longTpElem != null && StrUtil.isNotEmpty(tradeId) && !tradeId.equals("0")) {
             longTakeProfitTraderIdParam(longTpElem, null, false);
             log.info("[Gate] 多仓止盈触发 gridId:{}, orderId:{}", longTpElem.getId(), orderId);
-            cancelFarthestLongStopLoss();
+//            cancelFarthestLongStopLoss();
 //            checkLastTakeProfitAndRestart();
             return;
         }
@@ -608,7 +608,7 @@
         if (shortTpElem != null && StrUtil.isNotEmpty(tradeId) && !tradeId.equals("0")) {
             shortTakeProfitTraderIdParam(shortTpElem, null, false);
             log.info("[Gate] 空仓止盈触发 gridId:{}, orderId:{}", shortTpElem.getId(), orderId);
-            cancelFarthestShortStopLoss();
+//            cancelFarthestShortStopLoss();
 //            checkLastTakeProfitAndRestart();
             return;
         }

--
Gitblit v1.9.1