types: show exchange name in the trade footer

This commit is contained in:
c9s 2022-01-10 14:15:45 +08:00
parent 439685141f
commit e2f7790a4e

View File

@ -182,7 +182,7 @@ func (trade Trade) SlackAttachment() slack.Attachment {
{Title: "Order ID", Value: strconv.FormatUint(trade.OrderID, 10), Short: true},
},
FooterIcon: footerIcon,
Footer: util.Render("trade time {{ . }}", trade.Time.Time().Format(time.StampMilli)),
Footer: strings.ToLower(trade.Exchange.String()) + util.Render(" creation time {{ . }}", trade.Time.Time().Format(time.StampMilli)),
}
}