From f4bbd0d2392c3b25abb8d693fe2aaad80519b4d9 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 01 Jun 2026 12:52:31 +0800
Subject: [PATCH] ``` refactor(gateApi): 注释网格交易中的止盈订单处理逻辑

---
 src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 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 5df541b..081aa3c 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -427,8 +427,8 @@
                     tryGenerateQueues();
                 }else {
                     longPositionSize = size;
-                    checkShortEntryOrderToCancel();
-                    checkLongEntryOrderToCancel();
+//                    checkShortEntryOrderToCancel();
+//                    checkLongEntryOrderToCancel();
                 }
             } else {
                 if (longActive && state == StrategyState.ACTIVE) {
@@ -450,8 +450,8 @@
                     tryGenerateQueues();
                 }else {
                     shortPositionSize = size.abs();
-                    checkShortEntryOrderToCancel();
-                    checkLongEntryOrderToCancel();
+//                    checkShortEntryOrderToCancel();
+//                    checkLongEntryOrderToCancel();
                 }
             } else {
                 if (shortActive && state == StrategyState.ACTIVE) {
@@ -1382,7 +1382,7 @@
         log.info("[Gate] 多仓止损触发 gridId:{}, 在gridId:{}挂{}张多单", gridId, newEntryGridId, entryQty);
         newEntryGrid.getLongTraderParam().setQuantity(size);
         placeEntryOrderWithPreFlag(newEntryGrid, true, triggerPrice,
-                FuturesPriceTrigger.RuleEnum.NUMBER_2, size);
+                FuturesPriceTrigger.RuleEnum.NUMBER_1, size);
     }
 
     private void handleShortStopLossTriggered(GridElement gridElement) {
@@ -1417,7 +1417,7 @@
         log.info("[Gate] 空仓止损触发 gridId:{}, 在gridId:{}挂{}张空单", gridId, newEntryGridId, entryQty);
         newEntryGrid.getShortTraderParam().setQuantity(size);
         placeEntryOrderWithPreFlag(newEntryGrid, false, triggerPrice,
-                FuturesPriceTrigger.RuleEnum.NUMBER_1, negate(size));
+                FuturesPriceTrigger.RuleEnum.NUMBER_2, negate(size));
     }
 
     private void extendLongStopLoss(int filledQty) {

--
Gitblit v1.9.1