From 661013fa55978908d5b417aa327b861c912adbcd Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 16 四月 2024 15:38:35 +0800
Subject: [PATCH] 添加日志

---
 utils/data_export_util.py |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/utils/data_export_util.py b/utils/data_export_util.py
index b81ebb4..734dfa1 100644
--- a/utils/data_export_util.py
+++ b/utils/data_export_util.py
@@ -61,7 +61,7 @@
     return fdatas
 
 
-def export_l2_data(code, datas, process_indexs, trade_indexs, real_position_indexes, deal_list_dict, sell_nos,active_sell_nos):
+def export_l2_data(code, datas, process_indexs, trade_indexs, real_position_indexes, deal_list_dict, sell_nos, active_sell_nos):
     def find_process_index(index):
         for i in range(0, len(process_indexs)):
             if process_indexs[i][0] <= index <= process_indexs[i][1]:
@@ -216,28 +216,28 @@
         order_no_index_map[int(d[10])] = i
     order_no_indexes = [(k, order_no_index_map[k]) for k in order_no_index_map]
     order_no_indexes.sort(key=lambda x: x[0])
-
-    if sell_nos:
-        for sell_info in sell_nos:
-            if sell_info[1] * sell_info[2] < 50 * 10000:
-                continue
-            for i in range(len(order_no_indexes) - 1):
-                if order_no_indexes[i][0] < sell_info[0] < order_no_indexes[i + 1][0]:
-                    item = []
-                    item.append(order_no_indexes[i + 1][1])
-                    item.append(l2_huaxin_util.convert_time(sell_info[3][0], with_ms=True))
-                    item.append("")
-                    item.append(
-                        "{}涓�".format(round(sell_info[1] * sell_info[2] / 10000, 1)))
-                    item.append(sell_info[2])
-                    item.append(sell_info[1] // 100)
-                    item.append("涓诲姩鍗�")
-                    item.append(1)
-                    item.append(l2_huaxin_util.convert_time(sell_info[4][0], with_ms=True))
-                    item.append(None)
-                    item.append(sell_info[0])
-                    fdatas.insert(order_no_indexes[i + 1][1], (0, None, item))
-                    break
+    # 涓嶆坊鍔犱富鍔ㄥ崠鏁版嵁
+    # if sell_nos:
+    #     for sell_info in sell_nos:
+    #         if sell_info[1] * sell_info[2] < 50 * 10000:
+    #             continue
+    #         for i in range(len(order_no_indexes) - 1):
+    #             if order_no_indexes[i][0] < sell_info[0] < order_no_indexes[i + 1][0]:
+    #                 item = []
+    #                 item.append(order_no_indexes[i + 1][1])
+    #                 item.append(l2_huaxin_util.convert_time(sell_info[3][0], with_ms=True))
+    #                 item.append("")
+    #                 item.append(
+    #                     "{}涓�".format(round(sell_info[1] * sell_info[2] / 10000, 1)))
+    #                 item.append(sell_info[2])
+    #                 item.append(sell_info[1] // 100)
+    #                 item.append("涓诲姩鍗�")
+    #                 item.append(1)
+    #                 item.append(l2_huaxin_util.convert_time(sell_info[4][0], with_ms=True))
+    #                 item.append(None)
+    #                 item.append(sell_info[0])
+    #                 fdatas.insert(order_no_indexes[i + 1][1], (0, None, item))
+    #                 break
 
     return fdatas
 

--
Gitblit v1.8.0