diff --git a/pkg/cmd/root.go b/pkg/cmd/root.go index 97fe05839..c028e6654 100644 --- a/pkg/cmd/root.go +++ b/pkg/cmd/root.go @@ -105,10 +105,9 @@ func init() { RootCmd.PersistentFlags().String("ftx-api-key", "", "ftx api key") RootCmd.PersistentFlags().String("ftx-api-secret", "", "ftx api secret") - RootCmd.PersistentFlags().String("ftx-subaccount-name", "", "subaccount name. Specify it if the credential is for subaccount.") + RootCmd.PersistentFlags().String("ftx-subaccount", "", "subaccount name. Specify it if the credential is for subaccount.") } - func Execute() { viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_")) diff --git a/pkg/cmd/utils.go b/pkg/cmd/utils.go index 26fcf8d8a..159fac384 100644 --- a/pkg/cmd/utils.go +++ b/pkg/cmd/utils.go @@ -21,7 +21,7 @@ func newExchange(session string) (types.Exchange, error) { return ftx.NewExchange( viper.GetString("ftx-api-key"), viper.GetString("ftx-api-secret"), - viper.GetString("ftx-subaccount-name"), + viper.GetString("ftx-subaccount"), ), nil }