fixup! set order type default value in Defaults method

This commit is contained in:
なるみ 2023-03-06 13:37:03 +00:00
parent cd500e6e73
commit 00e022dbdc
2 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ func (s *Strategy) Defaults() error {
if s.OrderType == "" { if s.OrderType == "" {
s.OrderType = types.OrderTypeLimitMaker s.OrderType = types.OrderTypeLimitMaker
} }
return nil
} }
func (s *Strategy) Initialize() error { func (s *Strategy) Initialize() error {

View File

@ -35,6 +35,7 @@ func (s *Strategy) Defaults() error {
if s.OrderType == "" { if s.OrderType == "" {
s.OrderType = types.OrderTypeLimitMaker s.OrderType = types.OrderTypeLimitMaker
} }
return nil
} }
func (s *Strategy) Initialize() error { func (s *Strategy) Initialize() error {