From 7d7988372c3aefb139ada38b12b2f0dae2a37ce0 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 02 九月 2024 18:53:27 +0800
Subject: [PATCH] bug修复

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

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index 1ee1ba3..de11f6b 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -1,3 +1,4 @@
+import copy
 import logging
 import threading
 import time as t
@@ -951,6 +952,8 @@
             # 2.璺濈鏈�杩戠殑闈炴澘涓婃垚浜ょ殑鏃堕棿澶т簬涓�涓槇鍊�
             if abs(limit_up_price - float(trade_price)) < 0.001:
                 latest_exec_indexes = cls.__latest_exec_indexes[code]
+                if not latest_exec_indexes:
+                    latest_exec_indexes = []
                 # 鍒ゆ柇鏄惁鏄偢寮�鍚庝拱鍏�
                 last_exec_index = 0
                 if len(latest_exec_indexes) > 1:
@@ -1778,7 +1781,7 @@
                 limit_up_sell_count = L2TradeSingleDataProcessor.get_latest_limit_up_sell_order_count(code)
                 if (limit_up_sell_count == 0 or active_buy_blocks) and not single:
                     # 濡傛灉娌℃湁娑ㄥ仠鍗栨暟鎹�/婵�杩涗笅鍗曡�屼笖杩樻病鏈夋垚浜や拱鍏ヤ俊鍙凤紝灏辨寜鐓у師鏉ョ殑鎬诲崠棰濊绠�
-                    threshold_money, sell_1_price = refer_sell_data[1], refer_sell_data[3][0]
+                    threshold_money, sell_1_price = copy.deepcopy(refer_sell_data[1]), refer_sell_data[3][0]
                     for i in range(start_index - 1, -1, -1):
                         val = total_datas[i]["val"]
                         if tool.compare_time(val["time"], refer_sell_data[0]) < 0:

--
Gitblit v1.8.0