autoborrow: send notify when auto repay is skip

This commit is contained in:
c9s 2023-06-01 12:18:53 +08:00
parent fa0cb1e85f
commit 95e1f10934
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -358,6 +358,7 @@ func (s *Strategy) handleBinanceBalanceUpdateEvent(event *binance.BalanceUpdateE
account := s.ExchangeSession.GetAccount()
if account.MarginLevel.Compare(s.MinMarginLevel) > 0 {
bbgo.Notify("account margin level %f is greater than minimal margin level %f, skip", account.MarginLevel.Float64(), s.MinMarginLevel.Float64())
return
}