| | |
| | | |
| | | import constant |
| | | from strategy import data_cache |
| | | from log_module.log import logger_common |
| | | from log_module.log import logger_common, logger_debug |
| | | from utils import tool |
| | | |
| | | |
| | |
| | | |
| | | def __load_data(self): |
| | | if os.path.exists(self.stock_path): |
| | | |
| | | with open(self.stock_path, 'r', encoding='utf-8') as f: |
| | | self.all_stocks_all_K_line_property_dict = json.load(f) |
| | | logger_debug.info(f"历史K线数据数量({self.stock_path}):{len(self.all_stocks_all_K_line_property_dict)}") |
| | | else: |
| | | logger_debug.info(f"历史K线数据不存在:{self.stock_path}") |
| | | self.all_stocks_all_K_line_property_dict.clear() |
| | | |
| | | if os.path.exists(self.index_path): |