mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
bbgo: fix profit title
This commit is contained in:
parent
49a78c0c88
commit
2116efc42e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user