From 0bc0d21140904ad09cae456ea83b62cfbc4063ac Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 06 十一月 2024 16:49:48 +0800 Subject: [PATCH] bug修复 --- code_attribute/code_l1_data_manager.py | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/code_attribute/code_l1_data_manager.py b/code_attribute/code_l1_data_manager.py index 81bc199..28995b2 100644 --- a/code_attribute/code_l1_data_manager.py +++ b/code_attribute/code_l1_data_manager.py @@ -4,13 +4,30 @@ class L1DataManager: + # 鐜颁环 __current_price_dict = {} + # 寮�鐩樹环 + __open_price_dict = {} @classmethod def set_l1_current_price(cls, code, price): cls.__current_price_dict[code] = price + @classmethod + def set_open_price(cls, code, price): + """ + 璁剧疆寮�鐩樹环 + @param code: + @param price: + @return: + """ + cls.__open_price_dict[code] = price + # 鑾峰彇L1鐜颁环 @classmethod def get_l1_current_price(cls, code): return cls.__current_price_dict.get(code) + + @classmethod + def get_open_price(cls, code): + return cls.__open_price_dict.get(code) -- Gitblit v1.8.0