cmd: update executeOrderCmd description

This commit is contained in:
c9s 2022-03-02 23:45:46 +08:00
parent 95daa004aa
commit 127de0d81c

View File

@ -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()