bbgo: fix profit title

This commit is contained in:
c9s 2021-10-14 08:59:45 +08:00
parent 49a78c0c88
commit 2116efc42e

View File

@ -52,10 +52,10 @@ func (p *Profit) SlackAttachment() slack.Attachment {
if p.Profit > 0 {
color = types.GreenColor
title = "+" + p.Profit.String() + " " + p.QuoteCurrency
title += "+" + p.Profit.String() + " " + p.QuoteCurrency
} else {
color = types.RedColor
title = p.Profit.String() + " " + p.QuoteCurrency
title += p.Profit.String() + " " + p.QuoteCurrency
}
var fields []slack.AttachmentField