dryrunloop

This commit is contained in:
zhangkun9038@dingtalk.com 2025-05-27 14:22:26 +00:00
parent 996ee9c632
commit deb6d9d969
4 changed files with 8337 additions and 0 deletions

8302
ccxt/async_support/okx.py Normal file

File diff suppressed because it is too large Load Diff

16
tools/dryrunloop.service Normal file
View File

@ -0,0 +1,16 @@
[Unit]
Description=Run dryrunloop.sh script daily
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/bash /home/ubuntu/freqtrade/tools/dryrunloop.sh
WorkingDirectory=/home/ubuntu/freqtrade/tools
User=ubuntu
Group=ubuntu
# Ensure the script exits cleanly
SuccessExitStatus=0
[Install]
WantedBy=multi-user.target

10
tools/dryrunloop.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# 动态获取昨天和明天的日期
START_DATE=$(date -d "yesterday" +"%Y%m%d")
END_DATE=$(date -d "tomorrow" +"%Y%m%d")
./download.sh --timerange $START_DATE-$END_DATE
# 执行 hyperopt 和 dryrun
./hyperopt.sh $START_DATE $END_DATE
./dryrun.sh

9
tools/dryrunloop.timer Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Run dryrunloop.sh daily at 8:05 AM
[Timer]
OnCalendar=*-*-* 08:05:00
Persistent=true
[Install]
WantedBy=timers.target