bbgo_origin/pkg/bbgo/notifier.go
2020-10-18 11:35:40 +08:00

18 lines
350 B
Go

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