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 | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py index f6665dc..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 or code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(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澶╂槸鍚︽槸鏈�楂橀噺 @@ -232,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