From f3b98bcc220ed43ec5fad2d70b5412b0bdf623f3 Mon Sep 17 00:00:00 2001 From: blade <8019068@qq.com> Date: Thu, 18 Sep 2025 14:44:18 +0800 Subject: [PATCH] fix issue for 1m notification --- auto_schedule.py | 2 +- config.py | 1 + market_monitor_main.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/auto_schedule.py b/auto_schedule.py index 426d4eb..6286d5c 100644 --- a/auto_schedule.py +++ b/auto_schedule.py @@ -26,7 +26,7 @@ def run_script(): end_time = time.time() logger.info(f"Script execution time: {end_time - start_time} seconds") # 设置每20秒运行一次 -schedule.every(20).seconds.do(run_script) +schedule.every(10).seconds.do(run_script) # 保持程序运行并检查调度 logger.info("Scheduler started. Press Ctrl+C to stop.") diff --git a/config.py b/config.py index 561d67b..29ed08b 100644 --- a/config.py +++ b/config.py @@ -137,6 +137,7 @@ US_STOCK_MONITOR_CONFIG = { WINDOW_SIZE = {"window_sizes": [50, 80, 100, 120]} BAR_THRESHOLD = { + "1m": 1000 * 60, "5m": 1000 * 60 * 5, "15m": 1000 * 60 * 15, "30m": 1000 * 60 * 30, diff --git a/market_monitor_main.py b/market_monitor_main.py index a67d615..0d65f38 100644 --- a/market_monitor_main.py +++ b/market_monitor_main.py @@ -312,7 +312,7 @@ class MarketMonitorMain: if __name__ == "__main__": market_monitor_main = MarketMonitorMain() market_monitor_main.monitor_realtime_market( - symbol="BTC-USDT", + symbol="SOL-USDT", bar="1m", only_output_huge_volume=False, only_output_rise=False,