From 7effd6cbe7ba570c91fc47ff3971df6fb686759d Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 30 七月 2025 11:23:51 +0800 Subject: [PATCH] bug修复 --- l2/l2_transaction_data_processor.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/l2/l2_transaction_data_processor.py b/l2/l2_transaction_data_processor.py index 0811b3e..2a62378 100644 --- a/l2/l2_transaction_data_processor.py +++ b/l2/l2_transaction_data_processor.py @@ -58,7 +58,7 @@ if L2DataUtil.is_limit_up_price_buy(buyno_map[buy_no]["val"]): buy_progress_index = buyno_map[buy_no]["index"] break - if buy_progress_index is None and buy_exec_index is not None: + if buy_progress_index is None and buy_exec_index is not None and buy_exec_index >= 0: # 娌℃湁鎵惧埌鐪熷疄鎴愪氦杩涘害浣嶄笖鏈変拱鍏ユ墽琛屼綅缃� # 鏍规嵁鏈�杩戠殑鎴愪氦涔板崟鍙疯绠楃湡瀹炴垚浜や綅缃� try: @@ -288,12 +288,13 @@ # if big_money_count > 0: # LCancelRateManager.compute_big_num_deal_rate(code) - buy_progress_index, is_similar = cls.__compute_latest_trade_progress(code, fdatas) + buy_progress_index, is_similar = cls.__compute_latest_trade_progress(code, fdatas, + order_begin_pos.buy_exec_index) if buy_progress_index is not None: buy_progress_index_changed = cls.__TradeBuyQueue.set_traded_index(code, buy_progress_index, total_datas) - l2_log.info(code, logger_l2_trade_buy_queue, "鑾峰彇鎴愪氦浣嶇疆鎴愬姛锛� code-{} index-{}", code, buy_progress_index) + l2_log.info(code, logger_l2_trade_buy_queue, "鑾峰彇鎴愪氦浣嶇疆鎴愬姛锛� code-{} index-{} is_similar-{}", code, buy_progress_index, is_similar) if is_placed_order: # NewGCancelBigNumComputer().set_trade_progress(code, order_begin_pos.buy_single_index, # buy_progress_index) -- Gitblit v1.8.0