Skip to content
forked from c9s/bbgo

Commit

Permalink
remove config flag constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Mar 16, 2022
1 parent 553fe3a commit ed94b8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion pkg/cmd/balances.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ var balancesCmd = &cobra.Command{
Short: "Show user account balances",
SilenceUsage: true,
PreRunE: cobraInitRequired([]string{
"config",
"session",
}),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/kline.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import (
"fmt"
"syscall"

log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/c9s/bbgo/pkg/bbgo"
"github.com/c9s/bbgo/pkg/cmd/cmdutil"
"github.com/c9s/bbgo/pkg/types"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

// go run ./cmd/bbgo kline --exchange=ftx --symbol=BTCUSDT
var klineCmd = &cobra.Command{
Use: "kline",
Short: "connect to the kline market data streaming service of an exchange",
PreRunE: cobraInitRequired([]string{
"config",
"session",
"symbol",
"interval",
Expand Down
2 changes: 0 additions & 2 deletions pkg/cmd/trades.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ var tradesCmd = &cobra.Command{
Short: "Query trading history",
SilenceUsage: true,
PreRunE: cobraInitRequired([]string{
"config",
"session",
"symbol",
}),
Expand Down Expand Up @@ -98,7 +97,6 @@ var tradeUpdateCmd = &cobra.Command{
Use: "tradeupdate --session=[exchange_name]",
Short: "Listen to trade update events",
PreRunE: cobraInitRequired([]string{
"config",
"session",
}),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit ed94b8a

Please sign in to comment.