mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-11 01:23:51 +00:00
19 lines
363 B
Go
19 lines
363 B
Go
package bbgo
|
|
|
|
import (
|
|
"github.com/c9s/bbgo/pkg/bbgo/accounting"
|
|
"github.com/c9s/bbgo/pkg/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{}) {
|
|
}
|
|
|