From b4944ed430995f18225d2cfb3584603ea9d2d9d5 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 15 四月 2024 14:03:45 +0800 Subject: [PATCH] bug修复 --- l2/l2_data_manager_new.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py index 699fce9..890f06b 100644 --- a/l2/l2_data_manager_new.py +++ b/l2/l2_data_manager_new.py @@ -916,6 +916,9 @@ if not cls.__TradeStateManager.is_can_buy_cache(): return False, True, f"浠婃棩宸茬姝氦鏄�" + if l2_trade_util.is_in_forbidden_trade_codes(code): + return False, True, f"浠g爜绂佹浜ゆ槗" + if cls.__PauseBuyCodesManager.is_in_cache(code): return False, True, f"璇ヤ唬鐮佽鏆傚仠浜ゆ槗" now_time_int = int(tool.get_now_time_str().replace(":", "")) @@ -1348,8 +1351,7 @@ # if code.find('60') == 0: # 婵�杩涗拱 continue_count = 1 - has_single, _index, sell_info = cls.__compute_active_order_begin_pos(code, continue_count, max( - (compute_start_index - continue_count - 1) if new_add else compute_start_index, 0), compute_end_index) + has_single, _index, sell_info = cls.__compute_active_order_begin_pos(code, continue_count, compute_start_index, compute_end_index) fast_msg = None if has_single: order_begin_pos.mode = OrderBeginPosInfo.MODE_ACTIVE -- Gitblit v1.8.0