From 79588afbb1a1877d68e49c59dd9d461f98395066 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 08 Jun 2026 13:00:51 +0800
Subject: [PATCH] fix(gateApi): 修复网格交易中的条件判断逻辑

---
 src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java |   12 ++----------
 1 files changed, 2 insertions(+), 10 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 fede298..d7b7c84 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -411,22 +411,14 @@
         checkProfitAndReset();
 
 
-        if (
-                longActive == false &&
+        if (longActive == false &&
                         longPositionSize.compareTo(BigDecimal.ZERO) == 0){
-
-        }{
-
             processShortGrid(closePrice);
         }
 
 
-        if (
-                shortActive == false &&
+        if (shortActive == false &&
                         shortPositionSize.compareTo(BigDecimal.ZERO) == 0){
-
-        }{
-
             processLongGrid(closePrice);
         }
     }

--
Gitblit v1.9.1