bbgo_origin/bbgo/slack.go

19 lines
363 B
Go
Raw Normal View History

2020-07-13 05:25:48 +00:00
package bbgo
2020-09-19 03:09:20 +00:00
import (
"github.com/c9s/bbgo/pkg/bbgo/accounting"
"github.com/c9s/bbgo/pkg/bbgo/types"
)
2020-07-16 07:36:02 +00:00
type Notifier interface {
Notify(format string, args ...interface{})
2020-09-19 03:09:20 +00:00
NotifyTrade(trade *types.Trade)
NotifyPnL(report *accounting.ProfitAndLossReport)
2020-07-16 07:36:02 +00:00
}
type NullNotifier struct{}
func (n *NullNotifier) Notify(format string, args ...interface{}) {
}