From 70b51a2636858fb8cfbf39d3764d88d07286d8ad Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期二, 08 四月 2025 11:27:42 +0800 Subject: [PATCH] 增加并行数量 --- strategy/L2_data_analysis.py | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/strategy/L2_data_analysis.py b/strategy/L2_data_analysis.py index e1ec106..2cb0b22 100644 --- a/strategy/L2_data_analysis.py +++ b/strategy/L2_data_analysis.py @@ -40,7 +40,7 @@ # 鑾峰彇褰撳墠鏃ユ湡锛屽苟鏍煎紡鍖栦负 'YYYY-MM-DD' current_date = datetime.datetime.now().strftime('%Y-%m-%d') # 澹版槑瑕佽浆涔夌殑鏂囦欢鐨勮矾寰� - log_file_path = f'{constant.LOG_PATH}/transaction.{current_date}.log' + log_file_path = f'{constant.L2_LOG_PATH}/transaction.{current_date}.log' # 妫�鏌ユ枃浠舵槸鍚﹀瓨鍦�,濡傛灉瀛樺湪鍒欑户缁鐞嗭紝濡傛灉涓嶅瓨鍦ㄥ垯灏辨鎵撲綇 if not os.path.exists(log_file_path): logger.info(f"Error閿欒:{log_file_path}----鏂囦欢涓嶅瓨鍦紒") @@ -65,11 +65,6 @@ # print(f"娌℃湁鎵惧埌杩欎釜璐э細{code}") -# 娴嬭瘯鐨勬椂鍊欏彲浠ヨ皟鐢ㄤ竴涓� -find_L2_big_order_of_code('002384') - -# # 濡傛灉浣犻渶瑕佸皢瑙f瀽鍚庣殑鏃ュ織淇濆瓨鍒版柊鏂囦欢涓紝鍙互浣跨敤浠ヤ笅浠g爜锛� -# output_file_path = 'path/to/your/parsed_logfile.txt' -# with open(output_file_path, 'w', encoding='utf-8') as output_file: -# for log in parsed_logs: -# output_file.write(log + '\n') \ No newline at end of file +if __name__ == '__main__': + # 娴嬭瘯鐨勬椂鍊欏彲浠ヨ皟鐢ㄤ竴涓� + find_L2_big_order_of_code('002384') -- Gitblit v1.8.0