From e3ce9cb70874170882c5972c729cd506eebb635e Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 11 七月 2025 16:40:57 +0800 Subject: [PATCH] 加绿的规则调整/接口调整 --- l2/code_price_manager.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/l2/code_price_manager.py b/l2/code_price_manager.py index a36742c..5a26fb4 100644 --- a/l2/code_price_manager.py +++ b/l2/code_price_manager.py @@ -209,6 +209,7 @@ """ # 浠g爜娑ㄥ箙鏁版嵁 __current_rate_dict = {} + __current_price_dict = {} # 鏈�杩戜笂浼犳椂闂� __latest_upload_time = 0 @@ -220,6 +221,7 @@ @param price: @return: """ + cls.__current_price_dict[code] = price pre_close_price = CodePrePriceManager.get_price_pre_cache(code) if pre_close_price: rate = round((price - pre_close_price) * 100 / pre_close_price, 2) @@ -235,6 +237,10 @@ def get_current_rate_dict(cls): return cls.__current_rate_dict + @classmethod + def get_current_price_dict(cls): + return cls.__current_price_dict + if __name__ == "__main__": print(Buy1PriceManager().get_limit_up_info("002777")) -- Gitblit v1.8.0