stat_pair_quant/start.sh
Cryptoval Trading Technologies 6b8e9be45f initial
2026-06-08 02:28:14 +00:00

40 lines
667 B
Bash
Executable File

#!/usr/bin/env bash
CONFIG=""
usage() {
echo "Usage: $0 --config <json-file>"
}
while [[ $# -gt 0 ]]; do
case "$1" in
--config)
CONFIG="$2"
shift 2
;;
-h|--help)
usage
exit 0
;;
*)
echo "Unknown argument: $1" >&2
usage >&2
exit 1
;;
esac
done
if [[ -z "$CONFIG" ]]; then
echo "Missing --config" >&2
usage >&2
exit 1
fi
if [[ ! -f "$CONFIG" ]]; then
echo "Config file not found: $CONFIG" >&2
exit 1
fi
cd $(realpath $(dirname $0))
./run.sh --config $CONFIG --command "up -d" --sleep 10