crypto_quant/monitor_schedule.py

21 lines
642 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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,
only_output_over_mean_volume=True,
only_output_rise=False,
)
logging.info("本次循环监控结束等待30秒")
time.sleep(30)
if __name__ == "__main__":
monitor_schedule()