mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
xalign: add more info to the notification
This commit is contained in:
parent
8e5bb1b6e4
commit
634ded1759
|
@ -515,7 +515,11 @@ func (s *Strategy) align(ctx context.Context, sessions map[string]*bbgo.Exchange
|
|||
if selectedSession != nil && submitOrder != nil {
|
||||
log.Infof("placing %s order on %s: %+v", submitOrder.Symbol, selectedSession.Name, submitOrder)
|
||||
|
||||
bbgo.Notify("Aligning %s position on exchange session %s, delta: %f", currency, selectedSession.Name, q.Float64(), submitOrder)
|
||||
bbgo.Notify("Aligning %s position on exchange session %s, delta: %f %s, expected balance: %f %s",
|
||||
currency, selectedSession.Name,
|
||||
q.Float64(), currency,
|
||||
expectedBalance.Float64(), currency,
|
||||
submitOrder)
|
||||
|
||||
if s.DryRun {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user