This commit is contained in:
aaron 2024-06-06 21:07:48 +08:00
parent 1e607675d3
commit 66ce3a5e36
2 changed files with 8 additions and 7 deletions

14
main.py
View File

@ -6,12 +6,12 @@ import monitors.vegas as vegas
import monitors.large_transfer as lt
# 监控
# schedule.every(setting.whaleAlert_minutes).minutes.do(lt.run)
# schedule.every().hour.at(":00").do(vegas.run)
schedule.every(setting.whaleAlert_minutes).minutes.do(lt.run)
schedule.every().hour.at(":00").do(vegas.run, interval = '1h')
# print(f'Running... ChatID: {setting.chat_id}')
# while True:
# schedule.run_pending()
# time.sleep(1)
print(f'Running... ChatID: {setting.chat_id}')
while True:
schedule.run_pending()
time.sleep(1)
vegas.run('1h')
# vegas.run('1h')

View File

@ -96,6 +96,7 @@ def check_signal(symbol, interval,df):
telegram_sender.send_message(setting.chat_id, message)
def run(interval):
print('Vegas策略运行....')
symbols= get_symbols()
for s in symbols:
df = get_dataFrame(s, interval)