xbalance: fix message

This commit is contained in:
c9s 2021-08-17 11:04:55 +08:00
parent 5a0ae6773c
commit 47258b31c6

View File

@ -194,7 +194,7 @@ func (s *Strategy) checkBalance(ctx context.Context, sessions map[string]*bbgo.E
requiredAmount := middle - lowLevelBalance.Available requiredAmount := middle - lowLevelBalance.Available
s.Notifiability.Notify("Need %f %s to satisfy the middle balance level %f", requiredAmount.Float64(), s.Asset, s.Middle.Float64()) s.Notifiability.Notify("Need %f %s to satisfy the middle balance level %f", requiredAmount.Float64(), s.Asset, middle.Float64())
fromSession, _, err := s.findHighestBalanceLevelSession(sessions, requiredAmount) fromSession, _, err := s.findHighestBalanceLevelSession(sessions, requiredAmount)
if err != nil || fromSession == nil { if err != nil || fromSession == nil {