remove unused since flag

This commit is contained in:
c9s 2021-02-16 17:10:48 +08:00
parent 3867fdde91
commit 5f759780c3

View File

@ -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
}
}
}