mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
use Notifiability directly from environment
This commit is contained in:
parent
49ff9c4dd6
commit
eb05620f99
|
@ -36,8 +36,6 @@ type CrossExchangeStrategy interface {
|
|||
}
|
||||
|
||||
type Trader struct {
|
||||
Notifiability
|
||||
|
||||
environment *Environment
|
||||
|
||||
riskControls *RiskControls
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user