From febdf14b1884ffae862f5d7139cd2b7053d73750 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 21 五月 2024 19:08:41 +0800 Subject: [PATCH] bug修复 --- output/l2_output_util.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/output/l2_output_util.py b/output/l2_output_util.py index 9589606..dc81ad2 100644 --- a/output/l2_output_util.py +++ b/output/l2_output_util.py @@ -13,6 +13,7 @@ dealing_info = HuaXinBuyOrderManager.get_dealing_order_info(code) total_datas = l2_data_util.local_today_datas.get(code) for i in range(start_index, end_index, step): + # 鐪熷疄涓嬪崟浣嶇疆涓嶇鏄惁鎾ゅ崟閮介渶瑕佸姞鍏ラ槦鍒� data = total_datas[i] val = data['val'] if not L2DataUtil.is_limit_up_price_buy(val): @@ -23,7 +24,7 @@ total_datas, local_today_canceled_buyno_map.get( code)) - if left_count > 0: + if left_count > 0 or real_place_order_index == i: type_ = 0 num = val['num'] if dealing_info and str(total_datas[i]["val"]["orderNo"]) == str( @@ -32,6 +33,7 @@ num -= dealing_info[1] // 100 if i == real_place_order_index: type_ = 1 + has_real_order_index = True elif num * float(val['price']) >= 29900: type_ = 2 -- Gitblit v1.8.0