This commit is contained in:
aaron 2024-09-21 13:38:15 +08:00
parent 26153a8341
commit 5c7103fe03
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ times = ["00:00", "04:00", "08:00", "12:00", "16:00", "20:00"]
for t in times: for t in times:
schedule.every().day.at(t).do(macd_boll.run_crypto, interval = '4h') schedule.every().day.at(t).do(macd_boll.run_crypto, interval = '4h')
version = 'V1.14' version = 'V1.15'
print(f'Running... {version}') print(f'Running... {version}')
while True: while True:
schedule.run_pending() schedule.run_pending()

View File

@ -67,7 +67,7 @@ def stratergy_run(symbol, interval, df, debug):
def run_crypto(interval, debug=False): def run_crypto(interval, debug=False):
print('Vegas策略运行.') print('Vegas策略运行.')
time.sleep(5)
for s in crypto.get_future_symbols(): for s in crypto.get_future_symbols():
df = crypto.get_klines(s, interval, True) df = crypto.get_klines(s, interval, True)
stratergy_run(s,interval, df, debug) stratergy_run(s,interval, df, debug)