From 0acb55dbb2d251472f902b3bb721fd888ab9a31f Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 08 一月 2024 17:37:32 +0800
Subject: [PATCH] 增加获取当前正在委托详情API/下单后立马移除红名单

---
 code_attribute/first_target_code_data_processor.py |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py
index b7db9e6..c099f41 100644
--- a/code_attribute/first_target_code_data_processor.py
+++ b/code_attribute/first_target_code_data_processor.py
@@ -103,7 +103,8 @@
     # 鑾峰彇60澶╂渶澶ц褰�
     for code in codes:
         need_get_volumn = False
-        if code not in global_util.max60_volumn or global_util.max60_volumn.get(code) is None:
+        if code not in global_util.max60_volumn or global_util.max60_volumn.get(
+                code) is None or code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) is None:
             need_get_volumn = True
         # if not need_get_volumn and code_nature_analyse.CodeNatureRecordManager.get_nature_cache(
         #         code) is None:
@@ -141,7 +142,10 @@
                 if code_nature_analyse.is_price_too_high_in_days(volumes_data, limit_up_price):
                     # 鍒ゆ柇鏄惁澶珮
                     l2_trade_util.forbidden_trade(code, "6澶╁唴鑲′环闀垮緱澶珮")
-                    # HighIncreaseCodeManager().add_code(code)
+
+                if code_nature_analyse.is_continue_limit_up_not_enough_fall_dwon(volumes_data):
+                    # 鍒ゆ柇鏄惁澶珮
+                    l2_trade_util.forbidden_trade(code, "鍥炶俯涓嶅")
 
                 if code_nature_analyse.is_have_latest_max_volume(volumes_data, 2):
                     # 鏈�杩�2澶╂槸鍚︽槸鏈�楂橀噺
@@ -162,6 +166,7 @@
                 #                                      volumes_data)
             except Exception as e:
                 logger_first_code_record.error(f"{code}:{str(e)}")
+                logger_first_code_record.exception(e)
     gpcode_manager.FirstCodeManager().add_record(codes)
     # 鍒濆鍖栨澘鍧椾俊鎭紝鏆傛椂鍒犻櫎
     # for code in codes:
@@ -231,4 +236,3 @@
     gpcode_first_screen_manager.process_ticks(prices)
     logger_l2_codes_subscript.info(f"({request_id})l2浠g爜鐩稿叧鏁版嵁鍔犺浇瀹屾垚")
     return tick_datas
-

--
Gitblit v1.8.0