diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f70294481..5537df904 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,7 +7,6 @@ on: branches: [ main ] jobs: - build: runs-on: ubuntu-latest @@ -68,3 +67,9 @@ jobs: - name: TestDnum run: go test -tags dnum -v ./pkg/... + + - name: Create dotenv file + run: | + echo "DB_DRIVER=mysql" >> .env.local + echo "DB_DSN=root:root@/bbgo" >> .env.local + diff --git a/config/backtest.yaml b/config/backtest.yaml new file mode 100644 index 000000000..d41388b29 --- /dev/null +++ b/config/backtest.yaml @@ -0,0 +1,23 @@ +--- +backtest: + startTime: "2022-01-01" + endTime: "2022-01-02" + symbols: + - BTCUSDT + sessions: + - binance + - ftx + - max + - kucoin + - okex + +exchangeStrategies: +- on: binance + grid: + symbol: BTCUSDT + quantity: 0.001 + gridNumber: 100 + profitSpread: 1000.0 # The profit price spread that you want to add to your sell order when your buy order is executed + upperPrice: 40_000.0 + lowerPrice: 20_000.0 +