From 5f759780c382240475931ab8d60534cd5e83be9f Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 16 Feb 2021 17:10:48 +0800 Subject: [PATCH] remove unused since flag --- pkg/cmd/run.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go index a23f5cd75..0842d9c55 100644 --- a/pkg/cmd/run.go +++ b/pkg/cmd/run.go @@ -37,7 +37,6 @@ func init() { RunCmd.Flags().String("totp-account-name", "", "") RunCmd.Flags().Bool("enable-web-server", false, "enable web server") RunCmd.Flags().Bool("setup", false, "use setup mode") - RunCmd.Flags().String("since", "", "pnl since time") RootCmd.AddCommand(RunCmd) } @@ -227,7 +226,9 @@ func ConfigureTrader(trader *bbgo.Trader, userConfig *bbgo.Config) error { for _, entry := range userConfig.ExchangeStrategies { for _, mount := range entry.Mounts { log.Infof("attaching strategy %T on %s...", entry.Strategy, mount) - trader.AttachStrategyOn(mount, entry.Strategy) + if err := trader.AttachStrategyOn(mount, entry.Strategy) ; err != nil { + return err + } } }