From 2f830c1895b0a51681640664725cf18f0b08430a Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 18 七月 2025 15:47:03 +0800
Subject: [PATCH] 测试

---
 api/outside_api_command_callback.py |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py
index 43c1f89..26e2a37 100644
--- a/api/outside_api_command_callback.py
+++ b/api/outside_api_command_callback.py
@@ -884,7 +884,8 @@
                 # TODO 娴嬭瘯
                 current_delegates, update_time = huaxin_trade_record_manager.DelegateRecordManager.list_by_day(
                     tool.get_now_date_str("%Y%m%d"), None,
-                    [huaxin_util.TORA_TSTP_OST_Accepted, huaxin_util.TORA_TSTP_OST_PartTraded, huaxin_util.TORA_TSTP_OST_AllCanceled ])
+                    [huaxin_util.TORA_TSTP_OST_Accepted, huaxin_util.TORA_TSTP_OST_PartTraded,
+                     huaxin_util.TORA_TSTP_OST_AllCanceled])
                 fdatas = []
                 if current_delegates:
                     codes_set = set()
@@ -893,6 +894,11 @@
                             if int(c["direction"]) != huaxin_util.TORA_TSTP_D_Buy:
                                 continue
                             code = c["securityID"]
+
+                            # TODO 娴嬭瘯
+                            if code != '000751':
+                                continue
+
                             if code in codes_set:
                                 continue
                             orderSysID = c.get("orderSysID")
@@ -1026,8 +1032,8 @@
                                 fdata['l_down_watch_indexes_info'] = {}
                                 if current_info:
                                     fdata['l_down_watch_indexes_info']['current'] = current_info
-                            except:
-                                pass
+                            except Exception as e:
+                                logger_debug.exception(e)
                             fdatas.append(fdata)
                         except Exception as e:
                             logger_debug.exception(e)

--
Gitblit v1.8.0