From 1cc84417f6da1d92ff7dc2d61f7e61394f0c32a4 Mon Sep 17 00:00:00 2001 From: gavindiaz Date: Sat, 11 Jul 2026 02:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9telegram=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- strategies/apollo/apollo_telegram_bot.py | 4 ++-- strategies/ares/ares_telegram_bot.py | 2 +- strategies/athena/athena_telegram_bot.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/strategies/apollo/apollo_telegram_bot.py b/strategies/apollo/apollo_telegram_bot.py index 61b225e..f7d487d 100644 --- a/strategies/apollo/apollo_telegram_bot.py +++ b/strategies/apollo/apollo_telegram_bot.py @@ -230,7 +230,7 @@ def cmd_analyze(symbol: str): spec = importlib.util.spec_from_file_location( "apollo_cycle", Path(__file__).parent / "apollo_cycle.py" ) - mod = importlib.util.load_from_spec(spec) + mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) result = mod.run_analysis(sym) except Exception as e: @@ -247,7 +247,7 @@ def cmd_scan(): spec = importlib.util.spec_from_file_location( "apollo_cycle", Path(__file__).parent / "apollo_cycle.py" ) - mod = importlib.util.load_from_spec(spec) + mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) symbols = CFG["symbols"] diff --git a/strategies/ares/ares_telegram_bot.py b/strategies/ares/ares_telegram_bot.py index 86ba5fd..91ad350 100644 --- a/strategies/ares/ares_telegram_bot.py +++ b/strategies/ares/ares_telegram_bot.py @@ -230,7 +230,7 @@ def cmd_analyze(symbol: str): "ares_cycle", Path(__file__).parent / "ares_cycle.py" ) - mod = importlib.util.load_from_spec(spec) + mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) result = mod.run_analysis(symbol) # Returns signal dict or None diff --git a/strategies/athena/athena_telegram_bot.py b/strategies/athena/athena_telegram_bot.py index 161f169..fa156af 100644 --- a/strategies/athena/athena_telegram_bot.py +++ b/strategies/athena/athena_telegram_bot.py @@ -213,7 +213,7 @@ def _run_analysis(sym): spec = importlib.util.spec_from_file_location( "athena_cycle", Path(__file__).parent / "athena_cycle.py" ) - mod = importlib.util.load_from_spec(spec) + mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) return mod.run_analysis(sym) except Exception as e: