From 0ec57cf404bd657fb9e42ac508f421757637ab47 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 Oct 2020 14:14:07 +0800 Subject: [PATCH] add import section --- pkg/config/testdata/strategy.yaml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/pkg/config/testdata/strategy.yaml b/pkg/config/testdata/strategy.yaml index 28a72c4e8..daff4085c 100644 --- a/pkg/config/testdata/strategy.yaml +++ b/pkg/config/testdata/strategy.yaml @@ -1,4 +1,6 @@ --- +imports: +- github.com/c9s/bbgo/pkg/strategy/buyandhold sessions: max: exchange: max @@ -9,18 +11,18 @@ sessions: keyVar: BINANCE_API_KEY secretVar: BINANCE_API_SECRET exchangeStrategies: - - on: binance - buyandhold: - symbol: "BTCUSDT" - interval: "1m" - baseQuantity: 0.1 - minDropPercentage: -0.05 +- on: binance + buyandhold: + symbol: "BTCUSDT" + interval: "1m" + baseQuantity: 0.1 + minDropPercentage: -0.05 reportPnL: - - averageCostBySymbols: - - "BTCUSDT" - - "BNBUSDT" - of: binance - when: - - "@daily" - - "@hourly" +- averageCostBySymbols: + - "BTCUSDT" + - "BNBUSDT" + of: binance + when: + - "@daily" + - "@hourly"