grid2: add minimal quote investment check error log

This commit is contained in:
c9s 2023-03-02 15:14:21 +08:00
parent 4aa25db3ed
commit 729d32af70
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1612,6 +1612,7 @@ func (s *Strategy) Run(ctx context.Context, _ bbgo.OrderExecutor, session *bbgo.
if s.QuoteInvestment.Sign() > 0 {
grid := s.newGrid()
if err := s.checkMinimalQuoteInvestment(grid); err != nil {
s.logger.Errorf("check minimal quote investment failed, market info: %+v", s.Market)
return err
}
}