autoborrow: fix margin warning format

This commit is contained in:
c9s 2023-07-14 13:22:42 +08:00
parent c7ee7a9496
commit f8051b3f2b
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 2 additions and 2 deletions

View File

@ -29,4 +29,4 @@ exchangeStrategies:
low: 1000.0
maxQuantityPerBorrow: 100.0
maxTotalBorrow: 10.0

View File

@ -254,7 +254,7 @@ func (s *Strategy) checkAndBorrow(ctx context.Context) {
for maxTries := 5; account.MarginLevel.Compare(minMarginLevel) < 0 && maxTries > 0; maxTries-- {
log.Infof("current margin level %f < min margin level %f, skip autoborrow", account.MarginLevel.Float64(), minMarginLevel.Float64())
bbgo.Notify("Warning!!! %s Current Margin Level %f < Minimal Margin Level %f "+strings.Join(s.MarginLevelAlertSlackMentions, " "),
bbgo.Notify("Warning!!! %s Current Margin Level %f < Minimal Margin Level %f",
s.ExchangeSession.Name,
account.MarginLevel.Float64(),
minMarginLevel.Float64(),