mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: add minimal quote investment check error log
This commit is contained in:
parent
4aa25db3ed
commit
729d32af70
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user