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 import monitors.large_transfer as lt
# 监控 # 监控
# schedule.every(setting.whaleAlert_minutes).minutes.do(lt.run) schedule.every(setting.whaleAlert_minutes).minutes.do(lt.run)
# schedule.every().hour.at(":00").do(vegas.run) schedule.every().hour.at(":00").do(vegas.run, interval = '1h')
# print(f'Running... ChatID: {setting.chat_id}') print(f'Running... ChatID: {setting.chat_id}')
# while True: while True:
# schedule.run_pending() schedule.run_pending()
# time.sleep(1) 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) telegram_sender.send_message(setting.chat_id, message)
def run(interval): def run(interval):
print('Vegas策略运行....')
symbols= get_symbols() symbols= get_symbols()
for s in symbols: for s in symbols:
df = get_dataFrame(s, interval) df = get_dataFrame(s, interval)