From 0983b63726a57840d223443131738eb7d78fbf8a Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 27 五月 2024 13:22:55 +0800
Subject: [PATCH] bug修改

---
 code_attribute/code_market_manager.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/code_attribute/code_market_manager.py b/code_attribute/code_market_manager.py
index 4662ddc..b8b60e9 100644
--- a/code_attribute/code_market_manager.py
+++ b/code_attribute/code_market_manager.py
@@ -8,7 +8,7 @@
 
 
 class MarketInfo:
-    def __init__(self, code, price, rate, buy1_price, buy1_volume, total_volume, total_bid_volume, total_ask_volume):
+    def __init__(self, code, price, rate, buy1_price, buy1_volume, total_volume, total_bid_volume, total_ask_volume, pre_close_price):
         self.code = code
         self.price = price
         self.rate = rate
@@ -17,16 +17,17 @@
         self.total_volume = total_volume
         self.total_bid_volume = total_bid_volume
         self.total_ask_volume = total_ask_volume
+        self.pre_close_price = pre_close_price
 
 
 def set_market_info(data):
     """
     璁剧疆琛屾儏淇℃伅
-    :param data: (浠g爜, 鏈�杩戠殑浠锋牸, 娑ㄥ箙, 涔�1浠凤紝 涔�1閲�, 鎴愪氦鎬婚噺)
+    :param data: (浠g爜, 鏈�杩戠殑浠锋牸, 娑ㄥ箙, 涔�1浠凤紝 涔�1閲�, 鎴愪氦鎬婚噺, 涔板叆閲�, 鍗栧嚭閲�, 鏄ㄦ棩鏀剁洏浠�)
     :return:
     """
     async_log_util.info(logger_local_huaxin_l2_market, f"{data}")
-    __market_info_dict[data[0]] = MarketInfo(data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7])
+    __market_info_dict[data[0]] = MarketInfo(data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8])
 
 
 def get_market_info(code) -> MarketInfo:

--
Gitblit v1.8.0