mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
bbgo: add close position tag log
This commit is contained in:
parent
a791b455b8
commit
93593ffa06
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user