From e4cc44e3495857be36211309a987e72075a1ff4c Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Wed, 23 Sep 2026 18:01:03 +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 3a327f9..fb124ab 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -2019,7 +2019,7 @@
         }
 
         // [Gate] 止损只针对初始开仓仓位(baseQuantity),加仓部分只做止盈
-        int totalOrders = baseQty / qty;
+        int totalOrders = filledQty / qty;
         int[] orders = new int[gridCount];
 
         if (gridCount == 1) {
@@ -2082,7 +2082,7 @@
         }
 
         // [Gate] 止损只针对初始开仓仓位(baseQuantity),加仓部分只做止盈
-        int totalOrders = baseQty / qty;
+        int totalOrders = filledQty / qty;
         int[] orders = new int[gridCount];
 
         if (gridCount == 1) {

--
Gitblit v1.9.1