From 00e022dbdc6c08abd54614b28e6153f775b94c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=82=8B=E3=81=BF?= <4680567+narumiruna@users.noreply.github.com> Date: Mon, 6 Mar 2023 13:37:03 +0000 Subject: [PATCH] fixup! set order type default value in Defaults method --- pkg/strategy/marketcap/strategy.go | 1 + pkg/strategy/rebalance/strategy.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/strategy/marketcap/strategy.go b/pkg/strategy/marketcap/strategy.go index 81e2a3b8c..05aa8d020 100644 --- a/pkg/strategy/marketcap/strategy.go +++ b/pkg/strategy/marketcap/strategy.go @@ -47,6 +47,7 @@ func (s *Strategy) Defaults() error { if s.OrderType == "" { s.OrderType = types.OrderTypeLimitMaker } + return nil } func (s *Strategy) Initialize() error { diff --git a/pkg/strategy/rebalance/strategy.go b/pkg/strategy/rebalance/strategy.go index 7b6a9d6bb..681c6022c 100644 --- a/pkg/strategy/rebalance/strategy.go +++ b/pkg/strategy/rebalance/strategy.go @@ -35,6 +35,7 @@ func (s *Strategy) Defaults() error { if s.OrderType == "" { s.OrderType = types.OrderTypeLimitMaker } + return nil } func (s *Strategy) Initialize() error {