Skip to content

Commit aadadc8

Browse files
committed
fix OrderExecutorMap's SumbitOrders
1 parent b09e349 commit aadadc8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/strategy/rebalance/order_executor_map.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (m GeneralOrderExecutorMap) SubmitOrders(ctx context.Context, submitOrders
5555
return nil, fmt.Errorf("order executor not found for symbol %s", submitOrder.Symbol)
5656
}
5757

58-
createdOrders, err := orderExecutor.SubmitOrders(ctx)
58+
createdOrders, err := orderExecutor.SubmitOrders(ctx, submitOrder)
5959
if err != nil {
6060
return nil, err
6161
}

pkg/strategy/rebalance/strategy.go

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ func (s *Strategy) rebalance(ctx context.Context) {
139139
}
140140

141141
if s.DryRun {
142+
log.Infof("dry run, not submitting orders")
142143
return
143144
}
144145

0 commit comments

Comments
 (0)