mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
example: rename var createdOrders to createdOrder
This commit is contained in:
parent
29105eb57f
commit
5a4026e547
|
@ -94,7 +94,7 @@ var rootCmd = &cobra.Command{
|
|||
|
||||
time.Sleep(time.Second)
|
||||
|
||||
createdOrders, err := exchange.SubmitOrder(ctx, types.SubmitOrder{
|
||||
createdOrder, err := exchange.SubmitOrder(ctx, types.SubmitOrder{
|
||||
Symbol: symbol,
|
||||
Market: market,
|
||||
Side: types.SideTypeBuy,
|
||||
|
@ -108,7 +108,7 @@ var rootCmd = &cobra.Command{
|
|||
return err
|
||||
}
|
||||
|
||||
log.Info(createdOrders)
|
||||
log.Info(createdOrder)
|
||||
|
||||
cmdutil.WaitForSignal(ctx, syscall.SIGINT, syscall.SIGTERM)
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user