mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 17:13:51 +00:00
use slack attachment title instead of pretext
This commit is contained in:
parent
e7c718ee15
commit
45e930a086
|
@ -102,11 +102,12 @@ func (trade Trade) SlackAttachment() slack.Attachment {
|
|||
}
|
||||
|
||||
liquidity := trade.Liquidity()
|
||||
pretext := util.Render(slackTradeTextTemplate, trade)
|
||||
title := util.Render(slackTradeTextTemplate, trade)
|
||||
return slack.Attachment{
|
||||
Title: title,
|
||||
// Text: text,
|
||||
Pretext: pretext,
|
||||
Color: color,
|
||||
// Pretext: pretext,
|
||||
Color: color,
|
||||
Fields: []slack.AttachmentField{
|
||||
{Title: "Exchange", Value: trade.Exchange.String(), Short: true},
|
||||
{Title: "Price", Value: util.FormatFloat(trade.Price, 2), Short: true},
|
||||
|
|
Loading…
Reference in New Issue
Block a user