| | |
| | | with open(constant.INDEX_K_BARS_PATH, 'r', encoding='utf-8') as f: |
| | | data_cache.all_index_k_line_property_dict = json.load(f) |
| | | print( |
| | | f"data_cache.all_stocks_all_K_line_property_dict的个数==={len(data_cache.all_index_k_line_property_dict)}") |
| | | f"data_cache.all_index_k_line_property_dict==={len(data_cache.all_index_k_line_property_dict)}") |
| | | |
| | | |
| | | # 读取本地的个股所属概念板块数据 |
| | |
| | | json_data = f.read() |
| | | else: |
| | | json_data = "{}" |
| | | all_stocks_plate_dict = json.loads(json_data) |
| | | logger.info(f"all_stocks_plate_dict的数量={len(all_stocks_plate_dict)}") |
| | | data_cache.all_stocks_plate_dict = json.loads(json_data) |
| | | logger.info(f"all_stocks_plate_dict的数量={len(data_cache.all_stocks_plate_dict)}") |
| | | |
| | | |
| | | if __name__ == '__main__': |
| | | read_local_K_line_data() |