mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
grid2: fix precheck
This commit is contained in:
parent
a7a4660b2e
commit
5ef7da8422
|
@ -236,7 +236,7 @@ func (s *Strategy) Validate() error {
|
|||
}
|
||||
}
|
||||
|
||||
if !s.QuantityOrAmount.IsSet() && s.QuoteInvestment.IsZero() {
|
||||
if !s.QuantityOrAmount.IsSet() && s.QuoteInvestment.IsZero() && s.BaseInvestment.IsZero() {
|
||||
return fmt.Errorf("either quantity, amount or quoteInvestment must be set")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user