From 49a78c0c88fa1fd7f05064dd2cc4490f5039fcb2 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 14 Oct 2021 08:58:19 +0800 Subject: [PATCH] bbgo: fix profit stat title --- pkg/bbgo/profitstats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/bbgo/profitstats.go b/pkg/bbgo/profitstats.go index e2967b275..da6c12492 100644 --- a/pkg/bbgo/profitstats.go +++ b/pkg/bbgo/profitstats.go @@ -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()