From 173a8ace6fd8142a8e2ff62c3b496940c5f603cd Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 30 十月 2024 18:23:26 +0800
Subject: [PATCH] 量的代码结构修改/扫入策略修改

---
 l2/l2_data_manager_new.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index 1f6c604..0457b27 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -483,8 +483,8 @@
             total_sell_volume = 0
             if current_sell and len(current_sell) > 2:
                 total_sell_volume = current_sell[2]
-            volume_rate = code_volumn_manager.get_volume_rate(code, total_sell_volume=total_sell_volume)
-            volume_rate_index = code_volumn_manager.get_volume_rate_index(volume_rate)
+            volume_rate = code_volumn_manager.CodeVolumeManager().get_volume_rate(code, total_sell_volume=total_sell_volume)
+            volume_rate_index = code_volumn_manager.CodeVolumeManager().get_volume_rate_index(volume_rate)
             # 璁$畻鍒嗗��
             limit_up_time = cls.__LimitUpTimeManager.get_limit_up_time_cache(code)
             if limit_up_time is None:
@@ -576,7 +576,7 @@
                 b_need_cancel, b_cancel_data = cls.__HourCancelBigNumComputer.need_cancel(code, _buy_single_index,
                                                                                           _buy_exec_index, start_index,
                                                                                           end_index, total_data,
-                                                                                          code_volumn_manager.get_volume_rate_index(
+                                                                                          code_volumn_manager.CodeVolumeManager().get_volume_rate_index(
                                                                                               order_begin_pos.buy_volume_rate),
                                                                                           cls.volume_rate_info[code][1],
                                                                                           is_first_code)
@@ -2282,7 +2282,7 @@
                         # 涓婅瘉瀹夊叏绗旀暟涓�3
                         safe_count = 3
             if tool.is_sz_code(code):
-                money_y = code_volumn_manager.get_reference_volume_as_money_y(code)
+                money_y = code_volumn_manager.CodeVolumeManager().get_reference_volume_as_money_y(code)
                 # 澶т簬8浜跨殑瀹夊叏绗旀暟蹇呴』鏈�8绗�
                 if money_y >= 8:
                     safe_count = 8

--
Gitblit v1.8.0