From 65fabffcaff430e75362c876854baa7bda404e4f Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 06 Aug 2026 16:01:29 +0800
Subject: [PATCH] 去掉订单成家中的止损次数归零了
---
src/main/java/com/xcong/excoin/modules/gateApi/GateConfigDTO.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigDTO.java b/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigDTO.java
index 0c7fa57..bd054b4 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigDTO.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigDTO.java
@@ -41,6 +41,8 @@
private int maxPositionSize;
/** 止损阶梯次数,0=禁用 */
private int stopLossCount;
+ /** 止盈网格跨度:相邻止盈单跨越的网格数量,默认 2 */
+ private int takeProfitGridSpan;
/** 策略重启跨度阈值,0=禁用 */
private int restartGridSpan;
/** 价格精度 */
@@ -51,6 +53,10 @@
private String unrealizedPnlPriceMode;
/** 是否为生产环境 */
private boolean isProduction;
+ /** 价格驱动开关:true=启用K线推送中的价格驱动逻辑,false=禁用。null=未设置(默认true) */
+ private Boolean priceDriveEnabled;
+ /** 策略运行轮数上限:达到盈利后重启计数,达到此值后不再重启。0=不限 */
+ private int rounds;
/**
* 从 GateConfig 构建 DTO(不暴露 apiSecret)。
@@ -69,12 +75,15 @@
.quantity(config.getQuantity())
.maxPositionSize(config.getMaxPositionSize())
.stopLossCount(config.getStopLossCount())
+ .takeProfitGridSpan(config.getTakeProfitGridSpan())
.restartGridSpan(config.getRestartGridSpan())
.priceScale(config.getPriceScale())
.contractMultiplier(config.getContractMultiplier())
.unrealizedPnlPriceMode(config.getUnrealizedPnlPriceMode() != null
? config.getUnrealizedPnlPriceMode().name() : "LAST_PRICE")
.isProduction(config.isProduction())
+ .priceDriveEnabled(config.isPriceDriveEnabled())
+ .rounds(config.getRounds())
.build();
}
}
--
Gitblit v1.9.1