From 70b51a2636858fb8cfbf39d3764d88d07286d8ad Mon Sep 17 00:00:00 2001
From: admin <admin@example.com>
Date: 星期二, 08 四月 2025 11:27:42 +0800
Subject: [PATCH] 增加并行数量

---
 huaxin_client/l1_api_client.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/huaxin_client/l1_api_client.py b/huaxin_client/l1_api_client.py
index 6d1dcb2..9a929c5 100644
--- a/huaxin_client/l1_api_client.py
+++ b/huaxin_client/l1_api_client.py
@@ -164,7 +164,8 @@
         璁㈤槄鑲$エ鎸囨暟琛屾儏
         """
         # 娌繁300
-        self.m_api.SubscribeStockIndexData(qcvalueaddproapi.QCVD_EXD_SSE, "000300")  # 娌繁300
+        self.m_api.SubscribeStockIndexData(qcvalueaddproapi.QCVD_EXD_COMM, "000300")  # 娌繁300
+        self.m_api.SubscribeStockIndexData(qcvalueaddproapi.QCVD_EXD_SZSE, "000300")
         self.m_api.SubscribeStockIndexData(qcvalueaddproapi.QCVD_EXD_SSE, "000001")  # 涓婅瘉
         self.m_api.SubscribeStockIndexData(qcvalueaddproapi.QCVD_EXD_SZSE, "399006")  # 鍒涗笟鏉挎寚鏁�
         self.m_api.SubscribeStockIndexData(qcvalueaddproapi.QCVD_EXD_SZSE, "399001")  # 娣卞湷鎴愭寚
@@ -205,6 +206,7 @@
         # 鎸囨暟鏁版嵁
         try:
             data = {
+                "PreClosePrice":pStockIndexData.PreClosePrice,
                 "LastPrice": pStockIndexData.LastPrice,
                 "SecurityID": pStockIndexData.SecurityID,
                 "UpdateTime": pStockIndexData.UpdateTime,
@@ -213,7 +215,7 @@
                 "LXLastPrice": pStockIndexData.LXLastPrice,
             }
             self.stock_index_data_dict[data["SecurityID"]] = data
-            logger_debug.info(f"鎸囨暟琛屾儏搴旂瓟锛歿data}")
+            # logger_debug.info(f"鎸囨暟琛屾儏搴旂瓟锛歿data}")
         except Exception as e:
             logging.exception(e)
 

--
Gitblit v1.8.0