Administrator
2024-10-10 32a96952b6fc3429ca03668298e8efbd6a23daa0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
代码L1数据管理
"""
 
 
class L1DataManager:
    __current_price_dict = {}
 
    @classmethod
    def set_l1_current_price(cls, code, price):
        cls.__current_price_dict[code] = price
 
    # 获取L1现价
    @classmethod
    def get_l1_current_price(cls, code):
        return cls.__current_price_dict.get(code)