From b51b2ae184fad5aaf37a78903987e064f192d430 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 26 五月 2025 11:35:20 +0800
Subject: [PATCH] 大单解析修改

---
 api/outside_api_command_callback.py |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/api/outside_api_command_callback.py b/api/outside_api_command_callback.py
index 51fac20..a1f6ea6 100644
--- a/api/outside_api_command_callback.py
+++ b/api/outside_api_command_callback.py
@@ -19,7 +19,7 @@
 from code_attribute.code_data_util import ZYLTGBUtil
 from code_attribute.code_l1_data_manager import L1DataManager
 from code_attribute.gpcode_manager import CodePrePriceManager, CodesNameManager, WantBuyCodesManager, \
-    HumanRemoveForbiddenManager
+    HumanRemoveForbiddenManager, HumanForbiddenManager
 from db import mysql_data_delegate as mysql_data, redis_manager_delegate as redis_manager
 from db.redis_manager_delegate import RedisUtils
 from huaxin_client import l1_subscript_codes_manager
@@ -298,6 +298,7 @@
                         l2_trade_util.remove_from_forbidden_trade_codes(code)
                         # 鍔犳兂涔板崟瑕佷粠榛戝悕鍗曠Щ闄�
                         HumanRemoveForbiddenManager().add_code(code)
+                        HumanForbiddenManager().remove_code(code)
                     name = gpcode_manager.get_code_name(code)
                     if not name:
                         results = HistoryKDatasUtils.get_gp_codes_names([code])
@@ -324,6 +325,7 @@
                     l2_trade_util.forbidden_trade(code, msg="鎵嬪姩鍔犲叆 trade_server", force=True)
                     WantBuyCodesManager().remove_code(code)
                     HumanRemoveForbiddenManager().remove_code(code)
+                    HumanForbiddenManager().add_code(code)
                     name = gpcode_manager.get_code_name(code)
                     if not name:
                         results = HistoryKDatasUtils.get_gp_codes_names([code])
@@ -332,6 +334,7 @@
                 elif operate == outside_api_command_manager.OPERRATE_DELETE:
                     l2_trade_util.remove_from_forbidden_trade_codes(code)
                     HumanRemoveForbiddenManager().add_code(code)
+                    HumanForbiddenManager().remove_code(code)
                 elif operate == outside_api_command_manager.OPERRATE_GET:
                     codes = gpcode_manager.BlackListCodeManager().list_codes_cache()
                     datas = []
@@ -1314,7 +1317,10 @@
                 if latest_trading_date:
                     volumes_data = HistoryKDataManager().get_history_bars(code, latest_trading_date)
                     if volumes_data:
-                        is_new_top =  code_nature_analyse.is_new_top(code, gpcode_manager.get_limit_up_price_by_preprice(code, volumes_data[-1]["close"]), volumes_data)
+                        is_new_top = code_nature_analyse.is_new_top(code,
+                                                                    gpcode_manager.get_limit_up_price_by_preprice(code,
+                                                                                                                  volumes_data[0]["close"]),
+                                                                    volumes_data)
 
                 data = {
                     "blocks": {},

--
Gitblit v1.8.0