mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
autoborrow: fix margin warning format
This commit is contained in:
parent
c7ee7a9496
commit
f8051b3f2b
|
@ -29,4 +29,4 @@ exchangeStrategies:
|
|||
low: 1000.0
|
||||
maxQuantityPerBorrow: 100.0
|
||||
maxTotalBorrow: 10.0
|
||||
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user