mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
xbalance: show balance error message
This commit is contained in:
parent
fc860cd9a9
commit
cf29cfadd0
|
@ -198,6 +198,7 @@ func (s *Strategy) checkBalance(ctx context.Context, sessions map[string]*bbgo.E
|
||||||
|
|
||||||
fromSession, _, err := s.findHighestBalanceLevelSession(sessions, requiredAmount)
|
fromSession, _, err := s.findHighestBalanceLevelSession(sessions, requiredAmount)
|
||||||
if err != nil || fromSession == nil {
|
if err != nil || fromSession == nil {
|
||||||
|
s.Notifiability.Notify("can not find session with enough balance")
|
||||||
log.WithError(err).Errorf("can not find session with enough balance")
|
log.WithError(err).Errorf("can not find session with enough balance")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user