add trade exchange back

This commit is contained in:
c9s 2022-01-11 22:50:38 +08:00
parent 940c675cae
commit 848d36f90b

View File

@ -183,6 +183,7 @@ func (trade Trade) SlackAttachment() slack.Attachment {
// Pretext: pretext,
Color: color,
Fields: []slack.AttachmentField{
{Title: "Exchange", Value: trade.Exchange.String(), Short: true},
{Title: "Price", Value: trimTrailingZeroFloat(trade.Price), Short: true},
{Title: "Quantity", Value: trimTrailingZeroFloat(trade.Quantity), Short: true},
{Title: "QuoteQuantity", Value: trimTrailingZeroFloat(trade.QuoteQuantity), Short: true},