bbgo: fix profit stat title

This commit is contained in:
c9s 2021-10-14 08:58:19 +08:00
parent c12ff57e57
commit 49a78c0c88

View File

@ -255,10 +255,10 @@ func (s *ProfitStats) SlackAttachment() slack.Attachment {
var color string
if s.AccumulatedPnL > 0 {
color = types.GreenColor
title = "+" + s.AccumulatedPnL.String() + " " + s.QuoteCurrency
title += "+" + s.AccumulatedPnL.String() + " " + s.QuoteCurrency
} else {
color = types.RedColor
title = s.AccumulatedPnL.String() + " " + s.QuoteCurrency
title += s.AccumulatedPnL.String() + " " + s.QuoteCurrency
}
since := time.Unix(s.AccumulatedSince, 0).Local()