From 2f2516749615da866e96d8d24e499b7ecbb63a3e Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 23 六月 2025 12:28:52 +0800 Subject: [PATCH] 默认交易模式变更/真实下单位置计算位置修改 --- 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