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