From 93fde21f8d713cce62479dac9a1eb74f13bcdc83 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 07 十一月 2023 18:24:24 +0800 Subject: [PATCH] bug修复 --- l2/l2_data_manager_new.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py index 6abd491..0954343 100644 --- a/l2/l2_data_manager_new.py +++ b/l2/l2_data_manager_new.py @@ -1088,7 +1088,7 @@ thresh_hold_num = m_base_val // (float(gpcode_manager.get_limit_up_price(code)) * 100) # 鐪熷疄涓嬪崟浣嶅埌鎴愪氦浣嶇疆鐨勭函涔伴 total_num = 0 - for i in range(trade_index + 1, order_begin_pos.buy_single_index): + for i in range(trade_index + 1, buy_single_index): data = total_datas[i] val = data["val"] if not L2DataUtil.is_limit_up_price_buy(val): @@ -1391,7 +1391,7 @@ # 鏈夎繃闂數涓嬪崟 # 鎬诲崠鐨勪竴鍗婁綔涓簃鍊� threshold_num = int(sell_data[1] / (limit_up_price * 100)) // 2 - threshold_max_num = 0 + threshold_max_num = 1 if not threshold_num: # 鐩爣鎵嬫暟 -- Gitblit v1.8.0