bbgo_origin/bbgo/slack.go
2020-10-05 17:47:25 +08:00

19 lines
345 B
Go

package bbgo
import (
"github.com/c9s/bbgo/accounting"
"github.com/c9s/bbgo/types"
)
type Notifier interface {
Notify(format string, args ...interface{})
NotifyTrade(trade *types.Trade)
NotifyPnL(report *accounting.ProfitAndLossReport)
}
type NullNotifier struct{}
func (n *NullNotifier) Notify(format string, args ...interface{}) {
}