Administrator
2025-12-10 9801b75a1efa7bd1ff3bb8144375ea2535362d37
feat(okxWs): 添加持仓WebSocket更新间隔配置

- 在持仓WebSocket连接参数中新增updateInterval字段
- 设置默认更新间隔为2000毫秒
- 优化持仓数据推送频率控制逻辑
1 files modified
3 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/PositionsWs.java 3 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/PositionsWs.java
@@ -32,6 +32,9 @@
            args.put("channel", POSITIONSWS_CHANNEL);
            args.put("instType", CoinEnums.INSTTYPE_SWAP.getCode());
            args.put("instId", CoinEnums.HE_YUE.getCode());
            JSONObject updateInterval = new JSONObject();
            updateInterval.put("updateInterval","2000");
            args.put("updateInterval", updateInterval);
            argsArray.add(args);
            String connId = MallUtils.getOrderNum(POSITIONSWS_CHANNEL);