Administrator
2025-12-10 53196fafc8500c7fa2dafd9b3a58b5cd79972c50
fix(okxWs): 修正账户和持仓WebSocket参数配置

- 移除多余的注释代码块
- 恢复正确的参数设置逻辑
- 确保币种和合约参数正确传递
- 清理无效的额外参数配置
- 优化JSON参数构建流程
- 保持WebSocket连接ID生成一致性
2 files modified
10 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/AccountWs.java 5 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/PositionsWs.java 5 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/AccountWs.java
@@ -52,10 +52,7 @@
            JSONArray argsArray = new JSONArray();
            JSONObject args = new JSONObject();
            args.put("channel", ACCOUNTWS_CHANNEL);
//            args.put(CCY_KEY, CoinEnums.USDT.getCode());
            JSONObject updateInterval = new JSONObject();
            updateInterval.put("updateInterval",CoinEnums.UPDATEINTERVAL.getCode());
            args.put("extraParams", updateInterval);
            args.put(CCY_KEY, CoinEnums.USDT.getCode());
            argsArray.add(args);
            String connId = MallUtils.getOrderNum(ACCOUNTWS_CHANNEL);
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/PositionsWs.java
@@ -31,10 +31,7 @@
            JSONObject args = new JSONObject();
            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",CoinEnums.UPDATEINTERVAL.getCode());
            args.put("extraParams", updateInterval);
            args.put("instId", CoinEnums.HE_YUE.getCode());
            argsArray.add(args);
            String connId = MallUtils.getOrderNum(POSITIONSWS_CHANNEL);