From 9801b75a1efa7bd1ff3bb8144375ea2535362d37 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Wed, 10 Dec 2025 16:22:57 +0800
Subject: [PATCH] feat(okxWs): 添加持仓WebSocket更新间隔配置

---
 src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/PositionsWs.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/PositionsWs.java b/src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/PositionsWs.java
index e18dcde..dfe5ec7 100644
--- a/src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/PositionsWs.java
+++ b/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);
@@ -44,6 +47,9 @@
     }
 
     public static void handleEvent(JSONObject response, RedisUtils redisUtils) {
+
+
+        log.info("开始执行PositionsWs......");
         try {
             JSONArray dataArray = response.getJSONArray("data");
             if (dataArray == null || dataArray.isEmpty()) {

--
Gitblit v1.9.1