Skip to content

Commit 8a11c87

Browse files
authored
Merge pull request #2376 from c9s/dboy/xalign/attach-created-order
FIX: [xalign] update notification message to reflect created order
2 parents 6b13f0e + b12a8a1 commit 8a11c87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/strategy/xalign/strategy.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ type Strategy struct {
6363
// InteractiveOrderDelay is the delay duration for interactive order confirmation in Slack
6464
InteractiveOrderDelay types.Duration `json:"interactiveOrderDelay"`
6565
// InteractiveOrderEnabled enables interactive order confirmation in Slack
66-
InteractiveOrderEnabled bool `json:"interactiveOrderEnabled"`
66+
InteractiveOrderEnabled bool `json:"interactiveOrderEnabled"`
67+
// isInteractiveOrderEnabled is true iff InteractiveOrderEnabled = true and the interactive order dispatcher is available
6768
isInteractiveOrderEnabled bool
6869

6970
WarningDuration types.Duration `json:"warningFor"`
@@ -810,7 +811,7 @@ func (s *Strategy) onSubmittedOrderCallback(session *bbgo.ExchangeSession, submi
810811
} else {
811812
log.Errorf("orderbook %s not found", session.Name)
812813
}
813-
bbgo.Notify("Aligning order submitted", submitOrder)
814+
bbgo.Notify("Aligning order submitted", createdOrder)
814815
}
815816
}
816817

0 commit comments

Comments
 (0)