From 8b848e8a9fa242b39f92f3a28faf89be10a6e456 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 17 三月 2023 17:43:32 +0800 Subject: [PATCH] 首板策略优化 --- l2/transaction_progress.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/l2/transaction_progress.py b/l2/transaction_progress.py index d40366e..9f2c099 100644 --- a/l2/transaction_progress.py +++ b/l2/transaction_progress.py @@ -83,7 +83,7 @@ # 蹇界暐绗竴鏉℃暟鎹� for i in range(1, len(queues)): num = queues[i] - if num > min_num: + if num > min_num and len(num_list) < 4: num_list.append(num) # 淇濆瓨鍒楄〃 self.__save_buy_queue_data(code, num_list) @@ -96,7 +96,7 @@ index = None if True: # 鏈�澶�5涓暟鎹� - buyQueueBigTemp = buyQueueBig[:5] + buyQueueBigTemp = buyQueueBig last_index, is_default = self.get_traded_index(code) c_last_index = 0 if not is_default and last_index is not None: -- Gitblit v1.8.0