mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15: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)
|
time.Sleep(time.Second)
|
||||||
|
|
||||||
createdOrders, err := exchange.SubmitOrder(ctx, types.SubmitOrder{
|
createdOrder, err := exchange.SubmitOrder(ctx, types.SubmitOrder{
|
||||||
Symbol: symbol,
|
Symbol: symbol,
|
||||||
Market: market,
|
Market: market,
|
||||||
Side: types.SideTypeBuy,
|
Side: types.SideTypeBuy,
|
||||||
|
@ -108,7 +108,7 @@ var rootCmd = &cobra.Command{
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info(createdOrders)
|
log.Info(createdOrder)
|
||||||
|
|
||||||
cmdutil.WaitForSignal(ctx, syscall.SIGINT, syscall.SIGTERM)
|
cmdutil.WaitForSignal(ctx, syscall.SIGINT, syscall.SIGTERM)
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user