xalign: improve update message

This commit is contained in:
c9s 2023-06-13 23:21:07 +08:00
parent 007f3c9531
commit 45aaad1629
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -289,7 +289,7 @@ func (s *Strategy) align(ctx context.Context, sessions map[string]*bbgo.Exchange
if selectedSession != nil && submitOrder != nil { if selectedSession != nil && submitOrder != nil {
log.Infof("placing order on %s: %+v", selectedSession.Name, submitOrder) log.Infof("placing order on %s: %+v", selectedSession.Name, submitOrder)
bbgo.Notify("Aligning position", submitOrder) bbgo.Notify("Aligning position on exchange session %s, delta: %f", selectedSession.Name, q.Float64(), submitOrder)
if s.DryRun { if s.DryRun {
return return