21 lines
642 B
Python
21 lines
642 B
Python
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() |