From 44cfb32985e7ec9ba01c49de346e8d9f8e66758a Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 15 Jun 2026 15:25:58 +0800
Subject: [PATCH] fix(grid): 修复网格交易中的持仓计算错误和止盈逻辑问题
---
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListServiceImpl.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListServiceImpl.java b/src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListServiceImpl.java
index 50bbccb..6b3b1d6 100644
--- a/src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListServiceImpl.java
@@ -34,6 +34,7 @@
//获取WangGeListEnum全部网格参数
WangGeListEnum gridByPrice = WangGeListEnum.getGridByPrice(new BigDecimal(markPx));
+ log.info("获取的网格参数: {}", gridByPrice);
if (gridByPrice == null){
log.error("没有获取到网格参数......");
return null;
@@ -72,7 +73,6 @@
return null;
}
- log.info("网格初始化成功");
return queueAsc;
} catch (NumberFormatException e) {
log.error("解析价格参数失败", e);
--
Gitblit v1.9.1