From 5d6669fde44f7f0cfae03c34598d74af6445671d Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 19 Dec 2022 19:00:52 +0800 Subject: [PATCH] config: update grid2 config for sync --- config/grid2.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config/grid2.yaml b/config/grid2.yaml index 6d240ae42..aed8bc28d 100644 --- a/config/grid2.yaml +++ b/config/grid2.yaml @@ -13,6 +13,26 @@ sessions: exchange: binance envVarPrefix: binance +sync: + # userDataStream is used to sync the trading data in real-time + # it uses the websocket connection to insert the trades + userDataStream: + trades: false + filledOrders: false + + # since is the start date of your trading data + since: 2019-01-01 + + # sessions is the list of session names you want to sync + # by default, BBGO sync all your available sessions. + sessions: + - binance + + # symbols is the list of symbols you want to sync + # by default, BBGO try to guess your symbols by your existing account balances. + symbols: + - BTCUSDT + # example command: # go run ./cmd/bbgo backtest --config config/grid2.yaml --base-asset-baseline backtest: