Administrator
2024-07-12 f0518cb57cad6046a3cf3d0870879bb92c1619a0
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)