fix issue for 1m notification
This commit is contained in:
parent
adba888bb2
commit
f3b98bcc22
|
|
@ -26,7 +26,7 @@ def run_script():
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
logger.info(f"Script execution time: {end_time - start_time} seconds")
|
logger.info(f"Script execution time: {end_time - start_time} seconds")
|
||||||
# 设置每20秒运行一次
|
# 设置每20秒运行一次
|
||||||
schedule.every(20).seconds.do(run_script)
|
schedule.every(10).seconds.do(run_script)
|
||||||
|
|
||||||
# 保持程序运行并检查调度
|
# 保持程序运行并检查调度
|
||||||
logger.info("Scheduler started. Press Ctrl+C to stop.")
|
logger.info("Scheduler started. Press Ctrl+C to stop.")
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@ US_STOCK_MONITOR_CONFIG = {
|
||||||
WINDOW_SIZE = {"window_sizes": [50, 80, 100, 120]}
|
WINDOW_SIZE = {"window_sizes": [50, 80, 100, 120]}
|
||||||
|
|
||||||
BAR_THRESHOLD = {
|
BAR_THRESHOLD = {
|
||||||
|
"1m": 1000 * 60,
|
||||||
"5m": 1000 * 60 * 5,
|
"5m": 1000 * 60 * 5,
|
||||||
"15m": 1000 * 60 * 15,
|
"15m": 1000 * 60 * 15,
|
||||||
"30m": 1000 * 60 * 30,
|
"30m": 1000 * 60 * 30,
|
||||||
|
|
|
||||||
|
|
@ -312,7 +312,7 @@ class MarketMonitorMain:
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
market_monitor_main = MarketMonitorMain()
|
market_monitor_main = MarketMonitorMain()
|
||||||
market_monitor_main.monitor_realtime_market(
|
market_monitor_main.monitor_realtime_market(
|
||||||
symbol="BTC-USDT",
|
symbol="SOL-USDT",
|
||||||
bar="1m",
|
bar="1m",
|
||||||
only_output_huge_volume=False,
|
only_output_huge_volume=False,
|
||||||
only_output_rise=False,
|
only_output_rise=False,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue