Administrator
2025-12-23 d5416fa89d656f66779b722edd6710f6272a356c
refactor(okxNewPrice): 优化K线数据处理逻辑

- 使用prices变量替代kline15MinuteData流处理获取收盘价
- 简化了收盘价列表的生成方式
- 提高了代码的可读性和性能
1 files modified
6 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/okxNewPrice/OkxKlineWebSocketClient.java 6 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/okxNewPrice/OkxKlineWebSocketClient.java
@@ -381,9 +381,9 @@
                    // 确定市场方向
                    TradingStrategy.Direction direction = tradingStrategy.getDirection(prices, high, low, close, currentPrice);
                    System.out.println("市场方向(15分钟): " + direction);
                    if (direction == TradingStrategy.Direction.RANGING){
                        return;
                    }
//                    if (direction == TradingStrategy.Direction.RANGING){
//                        return;
//                    }
                    /**
                     * 获取当前网格信息