2025-08-05 09:03:59 +00:00
|
|
|
|
from market_monitor_main import MarketMonitorMain
|
|
|
|
|
|
import logging
|
|
|
|
|
|
import time
|
|
|
|
|
|
|
|
|
|
|
|
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s: %(message)s")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def monitor_schedule():
|
|
|
|
|
|
market_monitor_main = MarketMonitorMain()
|
|
|
|
|
|
logging.info("开始监控")
|
|
|
|
|
|
while True: # 每分钟监控一次
|
|
|
|
|
|
market_monitor_main.batch_monitor_realtime_market(
|
|
|
|
|
|
only_output_huge_volume=True,
|
2025-08-14 12:08:48 +00:00
|
|
|
|
only_output_over_mean_volume=True,
|
2025-08-05 09:03:59 +00:00
|
|
|
|
only_output_rise=False,
|
|
|
|
|
|
)
|
2025-08-05 09:35:37 +00:00
|
|
|
|
logging.info("本次循环监控结束,等待30秒")
|
|
|
|
|
|
time.sleep(30)
|
2025-08-05 09:03:59 +00:00
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
monitor_schedule()
|