bbgo: add close position tag log

This commit is contained in:
c9s 2022-07-28 10:27:04 +08:00
parent a791b455b8
commit 93593ffa06
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -136,6 +136,7 @@ func (e *GeneralOrderExecutor) ClosePosition(ctx context.Context, percentage fix
return nil
}
log.Infof("closing %s position with tags: %v", e.symbol, tags)
submitOrder.Tag = strings.Join(tags, ",")
_, err := e.SubmitOrders(ctx, *submitOrder)
return err