From 8cc5db75068ea88eee0ae62ccf75fc69fa5a7370 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 20 Oct 2020 14:14:21 +0800 Subject: [PATCH] add baseQuantity --- pkg/loader/loader_test.go | 1 + pkg/loader/testdata/strategy.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/loader/loader_test.go b/pkg/loader/loader_test.go index 99cb2b220..c984909fa 100644 --- a/pkg/loader/loader_test.go +++ b/pkg/loader/loader_test.go @@ -29,6 +29,7 @@ func TestLoadStrategies(t *testing.T) { length: 1, }, } + for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { strategies, err := LoadExchangeStrategies(tt.args.configFile) diff --git a/pkg/loader/testdata/strategy.yaml b/pkg/loader/testdata/strategy.yaml index 527a5fed3..4c43de5e3 100644 --- a/pkg/loader/testdata/strategy.yaml +++ b/pkg/loader/testdata/strategy.yaml @@ -3,4 +3,5 @@ exchangeStrategies: - buyandhold: symbol: "BTCUSDT" interval: "1m" + baseQuantity: 0.1 minDropPercentage: -0.05