From f8d89142a0cf65894f94c3501f1d6348302b7ab5 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 20 三月 2024 12:59:56 +0800 Subject: [PATCH] S撤打开 --- l2/l2_data_manager_new.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py index ac867d6..43de858 100644 --- a/l2/l2_data_manager_new.py +++ b/l2/l2_data_manager_new.py @@ -498,7 +498,7 @@ if b_need_cancel: async_log_util.error(logger_debug, f"{code} S鍚庢挙鍗曪細{b_cancel_msg}") # return total_data[end_index], f"S鍚庢挙({b_cancel_msg})" - return None, None + return None, "" except Exception as e: logging.exception(e) async_log_util.error(logger_l2_error, @@ -598,8 +598,8 @@ if not cancel_data: cancel_data, cancel_msg = l_cancel(order_begin_pos.buy_single_index, order_begin_pos.buy_exec_index) # 鏆傛椂鍙栨秷S鎾� - # if not cancel_data: - # cancel_data, cancel_msg = s_cancel(buy_single_index, buy_exec_index) + if not cancel_data: + cancel_data, cancel_msg = s_cancel(order_begin_pos.buy_single_index, order_begin_pos.buy_exec_index) if not cancel_data: cancel_data, cancel_msg = h_cancel(order_begin_pos.buy_single_index, order_begin_pos.buy_exec_index) if cancel_data and not DCancelBigNumComputer().has_auto_cancel_rules(code): -- Gitblit v1.8.0