From ac0551c20c35d84796f7975cf5f4c3c615b56334 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 27 十月 2023 18:33:39 +0800 Subject: [PATCH] 撤单记录增加下单起始位置参数 --- server.py | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/server.py b/server.py index d980fc0..d216dfc 100644 --- a/server.py +++ b/server.py @@ -407,17 +407,14 @@ buy_one_price_ = decimal.Decimal(round(float(buy_one_price), 2)).quantize( decimal.Decimal("0.00")) # 鑾峰彇鎵ц浣嶆椂闂� - - buy_single_index, buy_exec_index, compute_index, num, count, max_num_set, volume_rate = l2_data_manager.TradePointManager().get_buy_compute_start_data( - code) + order_begin_pos = l2_data_manager.TradePointManager().get_buy_compute_start_data_cache(code) if True: # 鍙湁涓嬪崟杩囧悗鎵嶈幏鍙栦氦鏄撹繘搴� exec_time = None try: - if buy_exec_index: + if order_begin_pos.buy_exec_index and order_begin_pos.buy_exec_index > -1: exec_time = \ - l2.l2_data_util.local_today_datas.get(code)[buy_exec_index]["val"][ - "time"] + l2.l2_data_util.local_today_datas.get(code)[order_begin_pos.buy_exec_index]["val"]["time"] except: pass buy_progress_index = self.tradeBuyQueue.compute_traded_index(code, @@ -425,7 +422,7 @@ buy_queue_result_list, exec_time) if buy_progress_index is not None: - LCancelBigNumComputer().set_trade_progress(code, buy_progress_index, + LCancelBigNumComputer().set_trade_progress(code, order_begin_pos.buy_single_index, buy_progress_index, l2.l2_data_util.local_today_datas.get( code)) -- Gitblit v1.8.0