autoborrow: notify balance delta event

This commit is contained in:
c9s 2023-06-01 12:13:51 +08:00
parent f349f3620c
commit 1dfb0cd1a1
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -350,6 +350,8 @@ func (s *Strategy) handleBalanceUpdate(balances types.BalanceMap) {
}
func (s *Strategy) handleBinanceBalanceUpdateEvent(event *binance.BalanceUpdateEvent) {
bbgo.Notify(event)
if s.MinMarginLevel.IsZero() {
return
}