mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Infof("closing %s position with tags: %v", e.symbol, tags)
|
||||||
submitOrder.Tag = strings.Join(tags, ",")
|
submitOrder.Tag = strings.Join(tags, ",")
|
||||||
_, err := e.SubmitOrders(ctx, *submitOrder)
|
_, err := e.SubmitOrders(ctx, *submitOrder)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user