From 127de0d81c0209e13eb191827351c6b84cb8146f Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 2 Mar 2022 23:45:46 +0800 Subject: [PATCH] cmd: update executeOrderCmd description --- pkg/cmd/orders.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/orders.go b/pkg/cmd/orders.go index 6f10c2785..3bdf26d80 100644 --- a/pkg/cmd/orders.go +++ b/pkg/cmd/orders.go @@ -21,7 +21,7 @@ import ( // go run ./cmd/bbgo list-orders [open|closed] --session=ftx --symbol=BTCUSDT var listOrdersCmd = &cobra.Command{ - Use: "list-orders [status]", + Use: "list-orders open|closed [--session session]", Short: "list user's open orders in exchange of a specific trading pair", Args: cobra.OnlyValidArgs, // default is open which means we query open orders if you haven't provided args. @@ -116,7 +116,7 @@ var listOrdersCmd = &cobra.Command{ } var executeOrderCmd = &cobra.Command{ - Use: "execute-order", + Use: "execute-order --session SESSION --symbol SYMBOL --side SIDE --target-quantity TOTAL_QUANTITY --slice-quantity SLICE_QUANTITY", Short: "execute buy/sell on the balance/position you have on specific symbol", SilenceUsage: true, RunE: func(cmd *cobra.Command, args []string) error { @@ -265,7 +265,7 @@ var executeOrderCmd = &cobra.Command{ // go run ./cmd/bbgo submit-order --session=ftx --symbol=BTCUSDT --side=buy --price=18000 --quantity=0.001 var submitOrderCmd = &cobra.Command{ Use: "submit-order --session SESSION --symbol SYMBOL --side SIDE --quantity QUANTITY [--price PRICE]", - Short: "submit limit order to the exchange", + Short: "place limit order to the exchange", SilenceUsage: true, RunE: func(cmd *cobra.Command, args []string) error { ctx := context.Background()