use Notifiability directly from environment

This commit is contained in:
c9s 2020-10-31 05:23:05 +08:00
parent 49ff9c4dd6
commit eb05620f99
2 changed files with 0 additions and 3 deletions

View File

@ -36,8 +36,6 @@ type CrossExchangeStrategy interface {
}
type Trader struct {
Notifiability
environment *Environment
riskControls *RiskControls

View File

@ -127,7 +127,6 @@ func runConfig(ctx context.Context, userConfig *bbgo.Config) error {
trader := bbgo.NewTrader(environ)
trader.Notifiability = notification
if userConfig.RiskControls != nil {
trader.SetRiskControls(userConfig.RiskControls)