mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
remove unused since flag
This commit is contained in:
parent
3867fdde91
commit
5f759780c3
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user