Administrator
2026-07-16 46c248012ecd1dd2cc717cce4c16b3f1bd24c6e9
fix(gateApi): 修复网格交易中遗留订单取消逻辑

- 移除向上遍历时对网格ID小于0的限制条件
- 移除向下遍历时对网格ID大于0的限制条件
- 确保所有遗留的多单和空单都能被正确取消
- 修复因ID判断导致的部分订单无法取消的问题
1 files modified
3 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java 3 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -398,7 +398,8 @@
            return;
        }
        checkProfitAndReset();
        // 异步检查盈亏,避免 REST 调用阻塞 WS 心跳导致 Socket closed
        executor.submitTask(this::checkProfitAndReset);
        if (state == StrategyState.ACTIVE &&
                longActive == false &&