Administrator
2025-07-11 e3ce9cb70874170882c5972c729cd506eebb635e
l2/code_price_manager.py
@@ -209,6 +209,7 @@
    """
    # 代码涨幅数据
    __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"))