example: rename var createdOrders to createdOrder

This commit is contained in:
c9s 2022-09-10 12:49:01 +08:00
parent 29105eb57f
commit 5a4026e547
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

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