mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
cmd: update executeOrderCmd description
This commit is contained in:
parent
95daa004aa
commit
127de0d81c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user