From 70728b98fd8d0286155283009ccb6b9b1d0ec11f Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 18 九月 2023 11:25:33 +0800
Subject: [PATCH] 交易日志同步

---
 l2/l2_data_manager_new.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index 1846584..6cf061e 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -330,6 +330,7 @@
             local_today_datas[code].extend(add_datas)
             l2.l2_data_util.load_num_operate_map(local_today_num_operate_map, code, add_datas)
             l2.l2_data_util.load_buy_no_map(local_today_buyno_map, code, add_datas)
+            l2_data_log.l2_time_log(code, "process_add_datas 鍔犺浇瀹屾暟鎹�")
             if constant.L2_SOURCE_TYPE == constant.L2_SOURCE_TYPE_HUAXIN:
                 try:
                     # 鑾峰彇涓嬪崟浣嶇疆
@@ -385,6 +386,7 @@
                 state = cls.__CodesTradeStateManager.get_trade_state_cache(code)
                 start_index = len(total_datas) - len(add_datas)
                 end_index = len(total_datas) - 1
+                l2_data_log.l2_time_log(code, "process_add_datas 寮�濮嬪鐞�")
                 if state == trade_manager.TRADE_STATE_BUY_DELEGATED or state == trade_manager.TRADE_STATE_BUY_PLACE_ORDER or state == trade_manager.TRADE_STATE_BUY_SUCCESS:
                     # 宸叉寕鍗�
                     cls.__process_order(code, start_index, end_index, capture_timestamp, is_first_code)
@@ -1035,9 +1037,8 @@
             # 璁板綍涔板叆淇″彿浣嶇疆
             cls.__save_order_begin_data(code, buy_single_index, -1, compute_end_index, buy_nums, buy_count,
                                         max_num_set_new, None)
-            print("淇濆瓨澶у崟鏃堕棿", round((t.time() - _start_time) * 1000))
             _start_time = t.time()
-        pass
+        l2_data_log.l2_time_log(code, "__start_compute_buy 缁撴潫")
 
     # 鑾峰彇涓嬪崟璧峰淇″彿
     @classmethod

--
Gitblit v1.8.0