This commit is contained in:
aaron 2025-05-04 11:19:25 +08:00
parent 6629b318e1
commit 17c7f9cef5
2 changed files with 5 additions and 3 deletions

View File

@ -27,8 +27,10 @@ def run_monitor():
for time in times:
schedule.every().hour.at(time).do(technical_indicators_monitor.run, time_interval="15m")
# 1小时监控技术指标
schedule.every().hour.at(":00").do(technical_indicators_monitor.run, time_interval="1h")
# 每小时整点监控,技术指标
times = ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"]
for time in times:
schedule.every().hour.at(time).do(technical_indicators_monitor.run, time_interval="1h")
# 4小时监控技术指标
times = ["00:00", "04:00", "08:00", "12:00", "16:00", "20:00"]

View File

@ -18,7 +18,7 @@ services:
cryptoai-monitor:
build: .
container_name: cryptoai-monitor
image: cryptoai-monitor:0.0.7
image: cryptoai-monitor:0.0.8
restart: always
command: python run_monitor.py
environment: