From c1c2b03c9007783a3d1ce902723320e28945a799 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 8 Jun 2022 15:05:44 +0800 Subject: [PATCH] add release test script --- config/sync.yaml | 14 ++++++++++++-- scripts/release-test.sh | 4 ++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 scripts/release-test.sh diff --git a/config/sync.yaml b/config/sync.yaml index c711a3771..c78198912 100644 --- a/config/sync.yaml +++ b/config/sync.yaml @@ -15,6 +15,14 @@ sessions: exchange: max envVarPrefix: max + kucoin: + exchange: kucoin + envVarPrefix: kucoin + + okex: + exchange: okex + envVarPrefix: okex + sync: # userDataStream is used to sync the trading data in real-time # it uses the websocket connection to insert the trades @@ -31,6 +39,8 @@ sync: - binance - binance_margin_dotusdt - max + - okex + - kucoin # symbols is the list of symbols you want to sync # by default, BBGO try to guess your symbols by your existing account balances. @@ -47,6 +57,6 @@ sync: marginAssets: - USDT - # depositHistory: true - # rewardHistory: true + depositHistory: true + rewardHistory: true withdrawHistory: true diff --git a/scripts/release-test.sh b/scripts/release-test.sh new file mode 100644 index 000000000..cb0b7883d --- /dev/null +++ b/scripts/release-test.sh @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +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