From ab662be5c523b75c1bd28fc6bfcab2872b9623b3 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 12 六月 2025 15:22:06 +0800
Subject: [PATCH] bug修复

---
 trade/huaxin/huaxin_trade_data_update.py |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/trade/huaxin/huaxin_trade_data_update.py b/trade/huaxin/huaxin_trade_data_update.py
index 959b5f2..657a49e 100644
--- a/trade/huaxin/huaxin_trade_data_update.py
+++ b/trade/huaxin/huaxin_trade_data_update.py
@@ -65,13 +65,12 @@
                                 logger_debug.exception(e)
                             huaxin_trade_record_manager.DealRecordManager.add(datas)
                             if datas:
-                                tempList = [
-                                    {"time": d["tradeTime"], "type": int(d['direction']), "code": d['securityID']}
-                                    for d in datas]
-                                try:
-                                    trade_manager.process_trade_success_data(tempList)
-                                except Exception as e:
-                                    logging.exception(e)
+                                for d in datas:
+                                    if str(d['direction']) != str(huaxin_util.TORA_TSTP_D_Buy):
+                                        continue
+                                    trade_manager.DealCodesManager().add_deal_order(d['securityID'], d['volume'],
+                                                                                    d['price'], d["tradeID"],
+                                                                                    d["orderSysID"])
                     # 鎸佷粨鑲�
                     elif type_ == "position_list":
                         dataJSON = huaxin_trade_api.get_position_list()

--
Gitblit v1.8.0