Skip to content

Commit 20dd37c

Browse files
committed
slacknotifier: drop unused code
1 parent caf5701 commit 20dd37c

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

pkg/notifier/slacknotifier/slack.go

-31
Original file line numberDiff line numberDiff line change
@@ -158,34 +158,3 @@ func (n *Notifier) SendPhoto(buffer *bytes.Buffer) {
158158
func (n *Notifier) SendPhotoTo(channel string, buffer *bytes.Buffer) {
159159
// TODO
160160
}
161-
162-
/*
163-
func (n *Notifier) NotifyTrade(trade *types.Trade) {
164-
_, _, err := n.client.PostMessageContext(context.Background(), n.TradeChannel,
165-
slack.MsgOptionText(util.Render(`:handshake: {{ .Symbol }} {{ .Side }} Trade Execution @ {{ .Price }}`, trade), true),
166-
slack.MsgOptionAttachments(trade.SlackAttachment()))
167-
168-
if err != nil {
169-
logrus.WithError(err).Error("slack send error")
170-
}
171-
}
172-
*/
173-
174-
/*
175-
func (n *Notifier) NotifyPnL(report *pnl.AverageCostPnlReport) {
176-
attachment := report.SlackAttachment()
177-
178-
_, _, err := n.client.PostMessageContext(context.Background(), n.PnlChannel,
179-
slack.MsgOptionText(util.Render(
180-
`:heavy_dollar_sign: Here is your *{{ .symbol }}* PnL report collected since *{{ .startTime }}*`,
181-
map[string]interface{}{
182-
"symbol": report.Symbol,
183-
"startTime": report.StartTime.Format(time.RFC822),
184-
}), true),
185-
slack.MsgOptionAttachments(attachment))
186-
187-
if err != nil {
188-
logrus.WithError(err).Errorf("slack send error")
189-
}
190-
}
191-
*/

0 commit comments

Comments
 (0)