From 8f8075d597b2a35a6734e895b843faceae41b7ce Mon Sep 17 00:00:00 2001 From: yhydev Date: Fri, 12 Dec 2025 16:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_script.py b/run_script.py index 8a36b93..7ccddb8 100644 --- a/run_script.py +++ b/run_script.py @@ -165,7 +165,7 @@ async def run_script( print(f"清理临时脚本文件失败: {e}") @flow(name="Freqtrade Backtesting Flow") -def freqtrade_backtest_flow( +def start( script_url: Optional[str] = None, shell_script: Optional[str] = None ) -> dict: @@ -281,7 +281,7 @@ if __name__ == "__main__": exit(1) # 7. 执行 Flow - result = freqtrade_backtest_flow( + result = start( script_url=script_url, shell_script=shell_script )