10 lines
306 B
Bash
Executable File
10 lines
306 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e # 出错立即停止
|
|
|
|
# 获取当前 Git Commit 的前 8 位
|
|
GIT_COMMIT_SHORT=$(git rev-parse HEAD | cut -c 1-8)
|
|
docker-compose run --rm --name freqtrade-showtrades-${GIT_COMMIT_SHORT} freqtrade show-trades \
|
|
--print-json \
|
|
--db-url sqlite:////freqtrade/user_data/tradesv3.sqlite \
|