bbgo_origin/scripts/release-test.sh

13 lines
549 B
Bash
Raw Permalink Normal View History

2022-06-08 07:05:44 +00:00
#!/bin/bash
set -e
2022-06-08 07:07:14 +00:00
echo "testing sync..."
2022-06-08 07:05:44 +00:00
dotenv -f .env.local.mysql -- go run ./cmd/bbgo sync --session binance --config config/sync.yaml
dotenv -f .env.local.sqlite -- go run ./cmd/bbgo sync --session binance --config config/sync.yaml
2022-06-08 07:07:14 +00:00
echo "backtest sync..."
echo "backtest mysql sync..."
dotenv -f .env.local.mysql -- go run ./cmd/bbgo backtest --config config/dca.yaml --sync --sync-only --verify
echo "backtest sqlite sync..."
dotenv -f .env.local.sqlite -- go run ./cmd/bbgo backtest --config config/dca.yaml --sync --sync-only --verify