Skip to content

Commit

Permalink
fixup! set order type default value in Defaults method
Browse files Browse the repository at this point in the history
  • Loading branch information
narumiruna committed Mar 6, 2023
1 parent cd500e6 commit 00e022d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/strategy/marketcap/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (s *Strategy) Defaults() error {
if s.OrderType == "" {
s.OrderType = types.OrderTypeLimitMaker
}
return nil
}

func (s *Strategy) Initialize() error {
Expand Down
1 change: 1 addition & 0 deletions pkg/strategy/rebalance/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (s *Strategy) Defaults() error {
if s.OrderType == "" {
s.OrderType = types.OrderTypeLimitMaker
}
return nil
}

func (s *Strategy) Initialize() error {
Expand Down

0 comments on commit 00e022d

Please sign in to comment.