mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
use UnrealizedProfit for color
This commit is contained in:
parent
1d6b69e406
commit
bfe38b8815
|
@ -151,7 +151,7 @@ func (report ProfitAndLossReport) Print() {
|
||||||
|
|
||||||
func (report ProfitAndLossReport) SlackAttachment() slack.Attachment {
|
func (report ProfitAndLossReport) SlackAttachment() slack.Attachment {
|
||||||
var color = ""
|
var color = ""
|
||||||
if report.Profit > 0 {
|
if report.UnrealizedProfit > 0 {
|
||||||
color = slackstyle.Green
|
color = slackstyle.Green
|
||||||
} else {
|
} else {
|
||||||
color = slackstyle.Red
|
color = slackstyle.Red
|
||||||
|
|
Loading…
Reference in New Issue
Block a user