fix issue for 1m notification

This commit is contained in:
blade 2025-09-18 14:44:18 +08:00
parent adba888bb2
commit f3b98bcc22
3 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ def run_script():
end_time = time.time() end_time = time.time()
logger.info(f"Script execution time: {end_time - start_time} seconds") logger.info(f"Script execution time: {end_time - start_time} seconds")
# 设置每20秒运行一次 # 设置每20秒运行一次
schedule.every(20).seconds.do(run_script) schedule.every(10).seconds.do(run_script)
# 保持程序运行并检查调度 # 保持程序运行并检查调度
logger.info("Scheduler started. Press Ctrl+C to stop.") logger.info("Scheduler started. Press Ctrl+C to stop.")

View File

@ -137,6 +137,7 @@ US_STOCK_MONITOR_CONFIG = {
WINDOW_SIZE = {"window_sizes": [50, 80, 100, 120]} WINDOW_SIZE = {"window_sizes": [50, 80, 100, 120]}
BAR_THRESHOLD = { BAR_THRESHOLD = {
"1m": 1000 * 60,
"5m": 1000 * 60 * 5, "5m": 1000 * 60 * 5,
"15m": 1000 * 60 * 15, "15m": 1000 * 60 * 15,
"30m": 1000 * 60 * 30, "30m": 1000 * 60 * 30,

View File

@ -312,7 +312,7 @@ class MarketMonitorMain:
if __name__ == "__main__": if __name__ == "__main__":
market_monitor_main = MarketMonitorMain() market_monitor_main = MarketMonitorMain()
market_monitor_main.monitor_realtime_market( market_monitor_main.monitor_realtime_market(
symbol="BTC-USDT", symbol="SOL-USDT",
bar="1m", bar="1m",
only_output_huge_volume=False, only_output_huge_volume=False,
only_output_rise=False, only_output_rise=False,