From 98986bf100201ad41843cbba52d803911c7277f0 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Sat, 09 May 2026 16:25:09 +0800
Subject: [PATCH] fix(gateApi): 修正计划订单类型常量命名

---
 src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java |   16 ++++++----------
 1 files changed, 6 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 cd4f0b9..8adb280 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -58,8 +58,8 @@
         WAITING_KLINE, OPENING, ACTIVE, STOPPED
     }
 
-    private static final String ORDER_TYPE_CLOSE_LONG = "close-long-position";
-    private static final String ORDER_TYPE_CLOSE_SHORT = "close-short-position";
+    private static final String ORDER_TYPE_CLOSE_LONG = "plan-close-long-position";
+    private static final String ORDER_TYPE_CLOSE_SHORT = "plan-close-short-position";
 
     private final GateConfig config;
     private final GateTradeExecutor executor;
@@ -362,7 +362,7 @@
                 }
             }
         }
-        log.info("[Gate] 空队列:{}", shortPriceQueue);
+        log.info("[Gate] 原空队列:{}", shortPriceQueue);
         if (matched.isEmpty()) {
             log.info("[Gate] 空仓队列未触发, 当前价:{}", currentPrice);
             return;
@@ -384,7 +384,7 @@
             }
             shortPriceQueue.sort(BigDecimal::compareTo);
 
-            log.info("[Gate] 空队列:{}", shortPriceQueue);
+            log.info("[Gate] 现空队列:{}", shortPriceQueue);
         }
 
         synchronized (longPriceQueue) {
@@ -393,8 +393,6 @@
             while (longPriceQueue.size() > config.getGridQueueSize()) {
                 longPriceQueue.remove(longPriceQueue.size() - 1);
             }
-
-            log.info("[Gate] 多队列:{}", shortPriceQueue);
         }
     }
 
@@ -409,7 +407,7 @@
                 }
             }
         }
-        log.info("[Gate] 多队列:{}", longPriceQueue);
+        log.info("[Gate] 原多队列:{}", longPriceQueue);
         if (matched.isEmpty()) {
             log.info("[Gate] 多仓队列未触发,  当前价:{}", currentPrice);
             return;
@@ -432,7 +430,7 @@
             }
             longPriceQueue.sort(BigDecimal::compareTo);
 
-            log.info("[Gate] 多队列:{}", longPriceQueue);
+            log.info("[Gate] 现多队列:{}", longPriceQueue);
         }
 
         synchronized (shortPriceQueue) {
@@ -441,8 +439,6 @@
             while (shortPriceQueue.size() > config.getGridQueueSize()) {
                 shortPriceQueue.remove(shortPriceQueue.size() - 1);
             }
-
-            log.info("[Gate] 空队列:{}", shortPriceQueue);
         }
     }
 

--
Gitblit v1.9.1