mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
18 lines
344 B
Go
18 lines
344 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{}) {
|
|
}
|