From 331a177ada569d85107b6e294f904b37f386d33a Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 25 四月 2024 18:12:42 +0800
Subject: [PATCH] 下单优化

---
 output/code_info_output.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/output/code_info_output.py b/output/code_info_output.py
index d04333a..aa63022 100644
--- a/output/code_info_output.py
+++ b/output/code_info_output.py
@@ -422,17 +422,18 @@
 
                     records_new_data.append((time_, "", "-------------------------", []))
                     mode = data.get('mode')
+                    mode_desc = data.get('mode_desc')
                     if mode == OrderBeginPosInfo.MODE_ACTIVE:
                         records_new_data.append((time_, "婵�杩涗笅鍗�",
-                                                 f"銆恵format_l2_data(total_datas[data['buy_single_index']])}銆�-銆恵format_l2_data(total_datas[data['buy_exec_index']])}銆�",
+                                                 mode_desc,
                                                  extra_datas))
                     elif mode == OrderBeginPosInfo.MODE_FAST:
                         records_new_data.append((time_, "闂數涓嬪崟",
-                                                 f"銆恵format_l2_data(total_datas[data['buy_single_index']])}銆�-銆恵format_l2_data(total_datas[data['buy_exec_index']])}銆�",
+                                                 mode_desc,
                                                  extra_datas))
                     else:
                         records_new_data.append((time_, "甯歌涓嬪崟",
-                                                 f"銆恵format_l2_data(total_datas[data['buy_single_index']])}銆�-銆恵format_l2_data(total_datas[data['buy_exec_index']])}銆�",
+                                                 mode_desc,
                                                  extra_datas))
                 elif type == trade_record_log_util.TYPE_REAL_PLACE_ORDER_POSITION:
                     _datas = []

--
Gitblit v1.8.0