-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathb.com.cttf.sh
executable file
·22 lines (17 loc) · 1019 Bytes
/
b.com.cttf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -euo pipefail
if (( $# != 1 )); then
echo "Expect one parameter, the name of the binance.com trade history file."
echo "Concatenate multiple files into one file, they do not need to be sorted!"
exit 1
fi
# Parse the filename
source "$(dirname "$0")/filename.sh" "$1"
#cmd=binance-cli
cmd="cargo run --release"
$cmd pbcthf --no-progress-info -f "$on" -o "$(mkfullname "$dn" "$bn" pbcthf.csv)" | tee "$(mkfullname "$dn" "$bn" pbcthf.csv.result.txt)"
$cmd ttffbcthf --no-progress-info -f "$(mkfullname "$dn" "$bn" pbcthf.csv)" -o "$(mkfullname "$dn" "$bn" ttf.csv)"
$cmd pttf --no-progress-info --no-usd-value-needed -f "$(mkfullname "$dn" "$bn" ttf.csv)" | tee "$(mkfullname "$dn" "$bn" ttf.csv.pttf.result.txt)"
$cmd cttf --no-progress-info -f "$(mkfullname "$dn" "$bn" ttf.csv)" -o "$(mkfullname "$dn" "$bn" cttf.csv)"
$cmd pttf --no-progress-info --no-usd-value-needed -f "$(mkfullname "$dn" "$bn" cttf.csv)" | tee "$(mkfullname "$dn" "$bn" cttf.csv.pttf.result.txt)"
echo Done "$0"