From ece725aeb88f4754965852ea4be9ca8110a1445c Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 15 四月 2024 13:48:58 +0800 Subject: [PATCH] bug修复 --- l2/l2_data_manager_new.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py index c93ba92..699fce9 100644 --- a/l2/l2_data_manager_new.py +++ b/l2/l2_data_manager_new.py @@ -1468,14 +1468,13 @@ new_buy_exec_index, buy_nums, buy_count, rebegin_buy_pos, max_num_set_new, not_buy_msg = None, None, None, None, [], "" if order_begin_pos.mode == OrderBeginPosInfo.MODE_ACTIVE: # 璁剧疆涓烘�诲崠棰� - threshold_money = order_begin_pos.sell_info[0] new_buy_exec_index, buy_nums, buy_count, rebegin_buy_pos, threshold_money_new, max_num_set_new, not_buy_msg = cls.__sum_buy_num_for_order_active( code, start_process_index, compute_end_index, order_begin_pos.num, order_begin_pos.count, - threshold_money, + order_begin_pos.threshold_money, order_begin_pos.buy_single_index, order_begin_pos.max_num_set) threshold_money = threshold_money_new order_begin_pos.threshold_money = threshold_money @@ -1690,6 +1689,7 @@ total_datas = local_today_datas[code] start_time_str = total_datas[start_index]["val"]["time"] # 鑾峰彇鏈�杩戠殑鎬诲崠淇℃伅 + # (time_str, round(money), volume, sell_1_info) refer_sell_data = cls.__L2MarketSellManager.get_refer_sell_data(code, start_time_str) if code.find("60") == 0: if refer_sell_data is None: @@ -1706,7 +1706,7 @@ # 閲戦瑕佸ぇ浜�50涓� if _val["num"] * float(_val["price"]) < 5000: continue - return True, i, [refer_sell_data[0], 0] + return True, i, [refer_sell_data[0], refer_sell_data[1]] return False, -1, "鏈幏鍙栧埌婵�杩涗拱鐨勮捣濮嬩俊鍙�" else: # 娣辫瘉 @@ -2150,7 +2150,7 @@ threshold_money = threshold_money_origin # 鐩爣鎵嬫暟 - threshold_num = round(threshold_money / (limit_up_price * 100)) + threshold_num = 0 # round(threshold_money / (limit_up_price * 100)) bigger_threshold_num = round(5000 / (limit_up_price)) # buy_single_time_seconds = L2DataUtil.get_time_as_second(total_datas[buy_single_index]["val"]["time"]) -- Gitblit v1.8.0