# 市场扫描定时任务配置 # 格式: 分钟 小时 日 月 星期 命令 # 时区: Asia/Shanghai # 每个工作日开盘前扫描 (09:00) #0 9 * * 1-5 cd /app && python market_scanner.py 200 >> /app/logs/cron.log 2>&1 # 每个工作日午休时间扫描 (12:30) #30 12 * * 1-5 cd /app && python market_scanner.py 100 >> /app/logs/cron.log 2>&1 # 每个工作日收盘后扫描 (15:30) 30 15 * * 1-5 cd /app && python market_scanner.py 300 >> /app/logs/cron.log 2>&1 # 每周末进行一次深度扫描 (周六 10:00) #0 10 * * 6 cd /app && python market_scanner.py 500 >> /app/logs/cron.log 2>&1 # 高频监控 - 每30分钟扫描一次热门股票 (交易时间内: 9:30-15:00) # 注释掉避免过于频繁,需要时可以开启 # 30 9-14 * * 1-5 cd /app && python market_scanner.py 50 >> /app/logs/cron.log 2>&1 # 0 10-14 * * 1-5 cd /app && python market_scanner.py 50 >> /app/logs/cron.log 2>&1