Skip to content

Commit

Permalink
cmd: fix submitOrder cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jan 10, 2022
1 parent 4b0e721 commit 5103088
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/cmd/orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ import (
"syscall"
"time"

"github.com/google/uuid"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/c9s/bbgo/pkg/fixedpoint"

"github.com/c9s/bbgo/pkg/bbgo"
"github.com/c9s/bbgo/pkg/exchange/ftx"
"github.com/c9s/bbgo/pkg/types"
"github.com/c9s/bbgo/pkg/util"
)
Expand Down Expand Up @@ -322,9 +320,8 @@ var submitOrderCmd = &cobra.Command{
}

so := types.SubmitOrder{
ClientOrderID: uuid.New().String(),
Symbol: symbol,
Side: types.SideType(ftx.TrimUpperString(side)),
Side: types.SideType(strings.ToUpper(side)),
Type: types.OrderTypeLimit,
Quantity: util.MustParseFloat(quantity),
QuantityString: quantity,
Expand Down

0 comments on commit 5103088

Please sign in to comment.