mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
fixup! set order type default value in Defaults method
This commit is contained in:
parent
cd500e6e73
commit
00e022dbdc
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user