mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
deposit2transfer: fix emojis
This commit is contained in:
parent
4dc04e9bb9
commit
0917b13b3f
|
@ -225,21 +225,21 @@ func (s *Strategy) checkDeposits(ctx context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if amount.IsZero() || amount.Sign() < 0 {
|
if amount.IsZero() || amount.Sign() < 0 {
|
||||||
bbgo.Notify("Found succeeded deposit %s %s, but the balance %s %s is insufficient, skip transferring",
|
bbgo.Notify("🔍 Found succeeded deposit %s %s, but the balance %s %s is insufficient, skip transferring",
|
||||||
d.Amount.String(), d.Asset,
|
d.Amount.String(), d.Asset,
|
||||||
bal.Available.String(), bal.Currency)
|
bal.Available.String(), bal.Currency)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bbgo.Notify("Found succeeded deposit %s %s, transferring %s %s into the margin account",
|
bbgo.Notify("🔍 Found succeeded deposit %s %s, transferring %s %s into the margin account",
|
||||||
d.Amount.String(), d.Asset,
|
d.Amount.String(), d.Asset,
|
||||||
amount.String(), d.Asset)
|
amount.String(), d.Asset)
|
||||||
|
|
||||||
if s.SlackAlert != nil {
|
if s.SlackAlert != nil {
|
||||||
bbgo.PostLiveNote(&d,
|
bbgo.PostLiveNote(&d,
|
||||||
livenote.Channel(s.SlackAlert.Channel),
|
livenote.Channel(s.SlackAlert.Channel),
|
||||||
livenote.Comment(fmt.Sprintf("Transferring deposit asset %s %s into the margin account", amount.String(), d.Asset)),
|
livenote.Comment(fmt.Sprintf("🚥 Transferring deposit asset %s %s into the margin account", amount.String(), d.Asset)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -253,14 +253,14 @@ func (s *Strategy) checkDeposits(ctx context.Context) {
|
||||||
if s.SlackAlert != nil {
|
if s.SlackAlert != nil {
|
||||||
bbgo.PostLiveNote(&d,
|
bbgo.PostLiveNote(&d,
|
||||||
livenote.Channel(s.SlackAlert.Channel),
|
livenote.Channel(s.SlackAlert.Channel),
|
||||||
livenote.Comment(fmt.Sprintf(":cross_mark: Margin account transfer error: %+v", err2)),
|
livenote.Comment(fmt.Sprintf("❌ Margin account transfer error: %+v", err2)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if s.SlackAlert != nil {
|
if s.SlackAlert != nil {
|
||||||
bbgo.PostLiveNote(&d,
|
bbgo.PostLiveNote(&d,
|
||||||
livenote.Channel(s.SlackAlert.Channel),
|
livenote.Channel(s.SlackAlert.Channel),
|
||||||
livenote.Comment(fmt.Sprintf(":check_mark_button: %s %s transferred successfully", amount.String(), d.Asset)),
|
livenote.Comment(fmt.Sprintf("✅ %s %s transferred successfully", amount.String(), d.Asset)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user