From 418e54d6c6a4b3b4aaab9ef545cdcd458640a7f5 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 31 七月 2025 14:36:03 +0800
Subject: [PATCH] 添加除权接口

---
 code_attribute/gpcode_manager.py |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/code_attribute/gpcode_manager.py b/code_attribute/gpcode_manager.py
index 4dbcfc1..1f20dcd 100644
--- a/code_attribute/gpcode_manager.py
+++ b/code_attribute/gpcode_manager.py
@@ -8,7 +8,7 @@
 from db import redis_manager_delegate as redis_manager
 from db.mysql_data_delegate import Mysqldb
 from db.redis_manager_delegate import RedisUtils
-from log_module import log_export
+from log_module import log_export, async_log_util
 from log_module.log import logger_pre_close_price, logger_debug
 from trade import trade_record_log_util
 from utils import tool
@@ -794,6 +794,9 @@
     # 璁剧疆鏀剁洏浠�
     @classmethod
     def set_price_pre(cls, code, price, force=False):
+        if float(price) > 1000:
+            async_log_util.info(logger_debug, f"鑾峰彇鏄ㄦ棩鏀剁洏浠峰紓甯革細{code}-{price}")
+            return
         if code in cls.__price_pre_cache and not force:
             return
         price = round(float(price), 2)
@@ -816,6 +819,10 @@
     __limit_up_price_dict[code] = limit_up_price
     return limit_up_price
 
+def clear_limit_up_price_cache(code):
+    if code in __limit_up_price_dict:
+        __limit_up_price_dict.pop(code)
+
 
 def get_limit_up_price_as_num(code):
     limit_up_price = get_limit_up_price(code)

--
Gitblit v1.8.0